[Gambas-user] help with EXEC usage
Jussi Lahtinen
jussi.lahtinen at ...626...
Fri Mar 25 18:56:05 CET 2011
I think this is what Benoit means;
PUBLIC hProc AS Process
PUBLIC SUB btnPlay_Click()
hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") FOR
WRITE
END
PUBLIC SUB btnStop_Click()
IF hProc.State = Process.Running THEN
DEBUG hProc.Handle
SHELL "kill -s HUP " & CStr(hProc.Handle)
ENDIF
END
However it doesn't work with me, differences between distributions?
But maybe with different signal... or then with pgrep as I described
earlier.
Gambas 2.22 rev 3527 @ Ubuntu 10.10 64bit
Jussi
On Fri, Mar 25, 2011 at 10:20, Bill-Lancaster <bill-lancaster at ...2231...>wrote:
>
> Benoît, what do you mean by "run shell again" ?
> I tried:-
> IF hProc THEN
> hProc.Kill
> SHELL ""
> ENDIF
> with no effect
> Bill
> --
> View this message in context:
> http://old.nabble.com/help-with-EXEC-usage-tp31208112p31235898.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list