LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] ogg123 and piping commands

[ILUG] ogg123 and piping commands

Proinnsias Breathnach proinnsias at linux.ie
Fri Oct 13 17:38:14 IST 2006


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 !



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell