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] Script Query

[ILUG] Script Query

Ian ianhoweire at gmail.com
Sun Apr 6 12:29:17 IST 2008


Hey There,
Tried googling for a solution to this and having no luck as yet.

I'm basically launching a program in the background using a sh script.

firefox http://www.google.ie

(side note: this also launches the terminal, is there a way to prevent
this?)


then i want to have another script that can kill the process.
I presume i am only able to kill the process using the pid using the format
'kill 1234'
I can use the following line to copy the pid to a file

ps -e | grep firefox-bin | cut -d ' ' -f2 > ~/processID

how then can i pass the entry in processID to the kill command.
Or if there is another way to do this i''m all ears.

Ian



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