[Gambas-user] Shell Wait without Freeze Program

Bruce Steers bsteers4 at gmail.com
Sun May 16 10:39:54 CEST 2021


You should not use bash for the command
But if you must then try..

Shell “bash /etc/teteosnet/temp/piluxupdate_beta1.sh; exit” Wait


But better to use..
System.Shell = System.Find("bash")
Shell “/etc/teteosnet/temp/piluxupdate_beta1.sh” Wait



On Sun, 16 May 2021 at 00:29, Hasan Merkit <hasanmerkit at outlook.com> wrote:

> 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
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210516/047770db/attachment.htm>


More information about the User mailing list