Bit short of time... but quickly looking at this. I'm not sure but I think this problem has something to do with fact that you are starting two process with shell command. And I'm not sure how Gambas2 handles these... does it try to kill the shell itself, or process started with command shell.
So, you can try retrieve separated process pids (for get_iplayer and for mplayer) with pgrep, and use them to kill those processes. Maybe this is bug, Benoit? Jussi On Thu, Mar 24, 2011 at 08:45, Bill-Lancaster <[email protected]>wrote: > > Sorry - I'll try again. > > Its so simple, hardly worth making a project. > > I'm using get_iplayer in a Gambas project to download past BBC radio > programmes. > > It's working fine. To listen to the programme, this is the code - > get_iplayer --stream 13142 | mplayer -cache 3072 -, where 13142 is the > programme's index in get_iplayer. > > I can start the programme but can't stop it. > > Anyway, here's a small project > > Bill > > > 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 THEN hProc.Kill > END > > > -- > View this message in context: > http://old.nabble.com/help-with-EXEC-usage-tp31208112p31226463.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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ 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
