[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Look and See script




--On Donnerstag, April 11, 2002 18:53:19 -0500 "Daniel J. Rychlik" <daniel@rychlik.ws> wrote:

it crashes.  Is their a way to write a script that monitors the behavior
of the pid or some other kind of process that it runs from to check for
either yes its running or no its not?

I use a small script like this:
---------------------------------------
#! /bin/sh

EXE=/path/to/mud
LOGFILE=/var/log/mud.log

if [ ! -x $EXE ]; then
 echo "$EXE not executable" >> $LOGFILE
else
 while [ 1 ]; do
   $EXE >> $LOGFILE 2>&1
   sleep 10
 done
fi
---------------------------------------

HTH,

Vinai


--
To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: