From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ns.pcdesk.net ([65.100.173.137] helo=gwen.pcdesk.net) by speech.braille.uwo.ca with esmtp (Exim 3.35 #1 (Debian)) id 1ABk2E-00076m-00 for ; Mon, 20 Oct 2003 20:06:02 -0400 Received: (qmail 13216 invoked from network); 21 Oct 2003 00:05:23 -0000 Received: from localhost (HELO pcdesk.net) (127.0.0.1) by gwen.pcdesk.net with AES256-SHA encrypted SMTP; 21 Oct 2003 00:05:23 -0000 X-MessageWall-Score: 0 (pcdesk.net) Received: from [65.100.173.138] (authenticated as jbahm) by pcdesk.net (MessageWall 1.0.8) with SMTP (encrypted with RC4-MD5); 21 Oct 2003 0:5:23 -0000 Message-ID: <000a01c39767$078fdc00$6700a8c0@morgan> From: "Joseph C. Lininger" To: References: <20031020171311.GE12274@rednote.net> Subject: Re: Question about using pid Date: Mon, 20 Oct 2003 18:05:22 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: I'd check out the daemontools package. http://cr.yp.to/ddaemontools.html This tool has features to do what you want, plus a hole host of other stuff. An alternative would be to use a script to monitor for changes in process status, but this would be clumsy at best. -- Joseph C. Lininger jbahm@pcdesk.net ----- Original Message ----- From: "Janina Sajka" To: ; Sent: Monday, October 20, 2003 11:13 AM Subject: Question about using pid > I have a command that starts a process. Should that process die whilst > I'm not at my computer, I want a script to restart it. > > How do I do this? What doc might I read that would provide examples? > > I presume I should launch the process so that it's pid is written to a > file, and then I can just test for the running pid? > > But, I don't know how to go forward with this, so would appreciate all > advice and direction. > > > -- > > Janina Sajka > Email: janina@rednote.net > Phone: (202) 408-8175 > > Director, Technology Research and Development > American Foundation for the Blind (AFB) > http://www.afb.org > > Chair, Accessibility Work Group > Free Standards Group > http://accessibility.freestandards.org > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup >