ola, when i work with pd's [shell] and execute something like: [tail -f somepipe<. How can i stop this process, like in "real" shell with "ctrl c"?
thanks mORitz
Hi,
One way would be to send [killall tail( to shell. A better possibility, but still not ideal would be to use [pidof tail( to get the process numbers of all tail processes, and kill the one with the highest pid. Of course neither of these methods guarantee that you are only killing processes initiated by shell.
Jamie
On Fri, 10 Feb 2006 22:16:06 +0100 moritz erstens@gmx.ch wrote:
ola, when i work with pd's [shell] and execute something like: [tail -f somepipe<. How can i stop this process, like in "real" shell with "ctrl c"?
thanks mORitz
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
Seems to be a problem, yes, maybe I should implement something like a "kill" or "stop" message.
Günter
On Thu, 16 Feb 2006, Jamie Bullock wrote:
Hi,
One way would be to send [killall tail( to shell. A better possibility, but still not ideal would be to use [pidof tail( to get the process numbers of all tail processes, and kill the one with the highest pid. Of course neither of these methods guarantee that you are only killing processes initiated by shell.
Jamie
On Fri, 10 Feb 2006 22:16:06 +0100 moritz erstens@gmx.ch wrote:
ola, when i work with pd's [shell] and execute something like: [tail -f somepipe<. How can i stop this process, like in "real" shell with "ctrl c"?
thanks mORitz
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I read:
One way would be to send [killall tail( to shell. A better possibility, but still not ideal would be to use [pidof tail( to get the process i numbers of all tail processes, and kill the one with the highest pid.
I guess fuser /path/to/pipe gives the highest chance to kill the one you really want to get rid of sth. like:
fuser -v /path/to/pipe 2>&1 | grep tail | awk '{print $2}'
of course guenther's suggestion would be the cleanest solution
HTH
x
I wrote:
fuser -v /path/to/pipe 2>&1 | grep tail | awk '{print $2}'
lsof /path/to/pipe | grep tail | awk '{print $2}'
giving you roughly the same of course ;)
HTH
x
CK wrote:
I read:
One way would be to send [killall tail( to shell. A better possibility, but still not ideal would be to use [pidof tail( to get the process i numbers of all tail processes, and kill the one with the highest pid.
I guess fuser /path/to/pipe gives the highest chance to kill the one you really want to get rid of sth. like:
fuser -v /path/to/pipe 2>&1 | grep tail | awk '{print $2}'
of course guenther's suggestion would be the cleanest solution
HTH
x
thanks, that solved the job..
[*~] and [$100] moritz