From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cantata.rednote.net ([66.92.170.86]) by speech.braille.uwo.ca with esmtp (Exim 3.35 #1 (Debian)) id 1ABdal-0002b2-00 for ; Mon, 20 Oct 2003 13:13:15 -0400 Received: from cantata.rednote.net (localhost.localdomain [127.0.0.1]) by cantata.rednote.net (8.12.3/8.12.3/Debian-6.6) with ESMTP id h9KHDEiM013184 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 20 Oct 2003 13:13:15 -0400 Received: (from janina@localhost) by cantata.rednote.net (8.12.3/8.12.3/Debian-6.6) id h9KHDC72013180; Mon, 20 Oct 2003 13:13:12 -0400 Date: Mon, 20 Oct 2003 13:13:12 -0400 From: Janina Sajka To: ma-linux@tux.org, speakup@braille.uwo.ca Subject: Question about using pid Message-ID: <20031020171311.GE12274@rednote.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i 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 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