[Gambas-user] Shell Wait without Freeze Program
Bruce Steers
bsteers4 at gmail.com
Tue May 18 20:36:10 CEST 2021
On Tue, 18 May 2021 at 15:26, Hasan Merkit <hasanmerkit at outlook.com> wrote:
> Very thanks Bruce Steers,
>
>
>
> I used your recommended codes:
>
>
>
> 'myProc = Shell "bash -c
> /home/hasanmerkit/.teteosnet/temp/piluxupdate_up_" & InstallingUpdateID &
> ".sh"
>
> myProc = Shell "gedit"
>
>
>
> StateCheck:
>
> If myProc.State = Process.Running Then
>
> Print "running"
>
> Sleep 1
>
> Goto StateCheck
>
> Else
>
> Print "ending"
>
> Endif
>
>
>
> But i terminated “gedit”, and continue returning Process.Running = True.
>
> Print myProc.Running : printing 1
>
> Print myProc.State : printing 1
>
>
>
That is odd.
I found the same running pluma
it was not expected but i never use the *Sleep* command.
If you use
*Wait 1*
Not
Sleep 1
It works
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210518/afe6ed5b/attachment.htm>
More information about the User
mailing list