cronjob if condition

view story

http://www.unix.com – I have two master servers (i.e) myserver1 and myserver2 but one of them is passive and another is primary one which is live in production I have a script that will tell the status of the machine. Quote: unix@myserver1 > cat /tmp/server-status.pl ** Use -h to specify servicename (e.g. myserver.com)) ** Use -f to specify status file (e.g. /home/unix/file.txt) Usage: /tmp/server-status.pl -h servicename -f status_file E.g. /tmp/server-status.pl -h myserver.com (dns-name) -f /home/unix/file.txt Returns status (live|passive) I have a c (HowTos)