Stuff
public text v1 · immutableprocess=`ps auxwww | grep yatb | grep -v grep | awk '{print $1}'`
DATE=`date`
if [ -z "$process" ]; then
echo "($DATE) Yatb dead"
/dir/yatb/yatb -u /dir/yatb/my.conf
else
echo "($DATE) Yatb OK!"
fiprocess=`ps auxwww | grep yatb | grep -v grep | awk '{print $1}'`
DATE=`date`
if [ -z "$process" ]; then
echo "($DATE) Yatb dead"
/dir/yatb/yatb -u /dir/yatb/my.conf
else
echo "($DATE) Yatb OK!"
fi