LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-15-2004, 10:50 AM   #1
DropSig
Member
 
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, 12:52 PM   #2
phlogistonjohn
LQ Newbie
 
Registered: Jul 2003
Location: MA, USA
Distribution: Mandrake,Debian,Zaurus
Posts: 17

Rep: Reputation: 0
http://www.linuxquestions.org/questi...hreadid=192435

This should work unless mozilla forks itself, and the parent exits. It's something you could try though.
 
Old 06-15-2004, 04:43 PM   #3
DropSig
Member
 
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.
 
  


Reply


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 02:38 PM
I want to kill process Jeon, Chang-Min Linux - General 6 08-09-2005 01:14 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 03:32 PM
kill process dvong3 Linux - Newbie 8 07-08-2003 10:27 PM
How to kill a certain process? AMDPwred Linux - General 3 10-01-2002 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:37 AM.

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