[Gambas-user] help with EXEC usage

Benoît Minisini gambas at ...1...
Fri Mar 25 19:00:29 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
> 

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

-- 
Benoît Minisini




More information about the User mailing list