[Gambas-user] Shell Wait without Freeze Program
Hasan Merkit
hasanmerkit at outlook.com
Sun May 16 01:27:59 CEST 2021
How i can make waiting Shell without freezes program?
When i use this:
Shell “bash /etc/teteosnet/temp/piluxupdate_beta1.sh” Wait
Application executing this SH file, it’s fine but while executing, after few seconds OS warn user “My Gambas3 App not responsing. [Wait] [Force Quit]”
Just i want make my program wait to end of script, but not freeze.
Example:
Private Executing As Boolean = False
Public Sub Form_Open()
Executing = True
Shell “meow.sh” Wait
Executing = False
End
Public Sub Form_Close()
Stop Event
If Executing Then
Message(“Please wait”)
Else
Me.Close
Endif
End
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210515/d738e3f0/attachment.htm>
More information about the User
mailing list