[Gambas-user] options to kill a process started via SHELL or EXEC ?

Benoit Minisini benoit.minisini at gambas-basic.org
Thu Jul 7 12:56:51 CEST 2022


Le 06/07/2022 à 13:11, KKing a écrit :
> Is there a way to kill a process you invoke via SHELL or EXEC after say 
> a couple of seconds later?
> 

Get the process object returned by SHELL or EXEC, then create a timer 
that triggers you couple of seconds later, kill the process in the timer 
event handler, and stop the timer as you don't need it anymore.

Regards,

-- 
Benoît Minisini.


More information about the User mailing list