"Hello World"
i have a small question, and i donīt know if my solution is the best one.
may be somebody can help me...
i have to contruct a shell script to verify that a process runs all the time
My idea is to do a small program, called by cron each 5 min:
pidno=$( ps ax | awk '/process-name/ { print $1 }' )
if test "$pidno" ; then
echo "Process process-name is running"
else
echo "Process process-name not running"
echo "Executing the process again"
/home/user/process-name
fi
Someone knows a better idea????
Thanks a lot....
Ruben