From owner-freebsd-questions Wed Jun 30 7:50:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id A72911551C for ; Wed, 30 Jun 1999 07:50:26 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id JAA51137; Wed, 30 Jun 1999 09:47:32 -0500 (CDT) (envelope-from dan) Date: Wed, 30 Jun 1999 09:47:31 -0500 From: Dan Nelson To: Sodah Cc: freebsd-questions@FreeBSD.ORG Subject: Re: monitor process Message-ID: <19990630094731.A50144@dan.emsphone.com> References: <377B7199.DF55C8F7@index.com.jo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <377B7199.DF55C8F7@index.com.jo>; from "Sodah" on Thu Jul 1 16:48:10 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jul 01), Sodah said: > Greetings, > > I have process that dies after 4 hours or more. > Is it possible to monitor it and make it starts again > in auto-mode without typing it at the prompt? what I usually do is write a small wrapper script: while : ; do brokenprogram sleep 10 done then I run that script instead of "brokenprogram". -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message