On Fri, Oct 13, 2006 at 05:25:55PM +0100, Robert Kiely wrote:
> On 13/10/06, j michaelson <jmichaelson at gmail.com> wrote:
>> >1 - use top to show all the processes running on my pc
> >2 - use grep to find the line for ogg123
> >3 - somehow isolate the process id from the other information on the line
> >4 - use xargs to feed this to kill -2
> >
> >the final command should look something like....
> >
> >top -n 1 | grep ogg123 | ?????? | xargs kill -2
>> Don't use top, use ps and then awk '{print $2}' to print second item
> on the line i.e. PID
>Aaagh - the humanity !!!
killall -2 ogg123
voila !
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!