Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-15-2004, 09:50 AM   #1
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
How to autamicaly reload process after kill

Good morning. I'm setting up a guest account for my roommates so they can go on the net while im not there. I can do everything fine except that i want the web browser to automaticaly reload itself if it get closed( Wich by instinct someone will close it when they are done.)
I was thinkin of writing a script that would load firefox, looked for it pid, record it in a variable, then check for the existance of the pid in a loop and redo the whole script if the pid does not exist any more.

Now would that be the best way to go about it?
Or is there an easier, less time taking way to do so?

(running slackware 9.1 )
Old 06-15-2004, 11:52 AM   #2
LQ Newbie
Registered: Jul 2003
Location: MA, USA
Distribution: Mandrake,Debian,Zaurus
Posts: 17

Rep: Reputation: 0

This should work unless mozilla forks itself, and the parent exits. It's something you could try though.
Old 06-15-2004, 03:43 PM   #3
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Original Poster
Rep: Reputation: 30
Works great for what i need. Thanks.
And sorry if i posted something that allready been posted, i has'nt came up in my search.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot kill process essdeeay Linux - General 2 11-10-2005 01:38 PM
I want to kill process Jeon, Chang-Min Linux - General 6 08-09-2005 12:14 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
kill process dvong3 Linux - Newbie 8 07-08-2003 09:27 PM
How to kill a certain process? AMDPwred Linux - General 3 10-01-2002 01:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration