Am trying to write a script that will monitor `cron`, obviously this can only be done from another box (so I've figured) but I'm having a spot of bother...
We have two SCO 5.0.5 Unix boxes (.82 & .84).
I have the following script running on the .82 box presently.. being run from cron every 15 minutes with /usr/users/operator/check_cron ???.???.???.84.
if [ `rcmd $1 "ps -eaf | grep '/etc/cron' | grep -v grep"` ]
then
echo OK
else
mailx -s "WARNING(EV): 'Cron' not running on TVL Server $1" \
ops@somedomain.com.au <<END
`hostname` cannot see /etc/cron running on $1
This will effect all unattended services on $1
Follow TVL escalation procedure to resolve!!!!!
END
fi
But when I run the exact script from .84 checking .82 it comes back with Permission Failed. What can I do to resolve this?