I need to know how to translate an IF/THEN statemenr that works fine in any shell into something that is understandable by the crontab. This is going to be used to run dozens of complicated scrips and cannot be hardcoded into each script.
if [ `/opt/VRTSvcs/bin/hagrp -state ClusterService -sys paupcl01` == "ONLINE" ]; then
$dosomething$
fi
thanks!!!
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.
if [ `/opt/VRTSvcs/bin/hagrp -state ClusterService -sys paupcl01` == "ONLINE" ]; then
$dosomething$
fi
thanks!!!
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.