Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 1999 09:47:31 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Sodah <rsodah@index.com.jo>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: monitor process
Message-ID:  <19990630094731.A50144@dan.emsphone.com>
In-Reply-To: <377B7199.DF55C8F7@index.com.jo>; from "Sodah" on Thu Jul  1 16:48:10 GMT 1999
References:  <377B7199.DF55C8F7@index.com.jo>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990630094731.A50144>