From owner-freebsd-questions Wed Jun 30 7:50:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ucsu.Colorado.EDU (ucsu.Colorado.EDU [128.138.129.83]) by hub.freebsd.org (Postfix) with ESMTP id 49868154F5 for ; Wed, 30 Jun 1999 07:50:13 -0700 (PDT) (envelope-from doranj@ucsu.Colorado.EDU) Received: (from doranj@localhost) by ucsu.Colorado.EDU (8.9.3/8.9.3/ITS-5.0/standard) id IAA09500 for freebsd-questions@freebsd.org; Wed, 30 Jun 1999 08:50:12 -0600 (MDT) From: Jonathon Doran Message-Id: <199906301450.IAA09500@ucsu.Colorado.EDU> Subject: Re: monitor process To: freebsd-questions@freebsd.org Date: Wed, 30 Jun 1999 08:50:11 -0600 (MDT) In-Reply-To: <377B7199.DF55C8F7@index.com.jo> from "Sodah" at Jul 1, 99 04:48:10 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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? Yes, wrap it in a shell script: #!/bin/sh while true do myprocess done Jon Doran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message