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
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!