On Thu, 25 Sep 2003 12:35:01 -0500
"Lansing, Dan" <Dan.Lansing at AndersenCorp.com> wrote:
>Ok...perhaps I should have been more specific....i am familiar with chron,
>grep and ps....how would I combine these to write a script to do this??


Try this (salt to taste):

#!/bin/sh
PIDLIST=`/sbin/pidof progname`
if [ -z "$PIDLIST" ]; then
	echo "progname died, restarting";
	/cmd/to/start/progname
fi


Put that in a file, chmod +x and then add an entry in cron:

0-59/15 * * * * /path/to/script


Jay

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list