> 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
> 

I tried with just mplayer, and "kill -SIGHUP". Don't know if that makes a 
difference...

-- 
Benoît Minisini

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to