check_lagtime()
rshstatus=`rsh -n lilo /db/p2/oracle/names9208/restart_names.sh`
if $rshstatus <>0 then
errstatus=1
mailx -s "xirsol8dr" ordba@xilinx.com >> $log_dr
else if errstatus=0
echo "status to xirsol8dr successful"
this is the logic behind what im looking to do
i want to be able to connect to each box and check if successful or not with error status and send mail with log to dba if not successful.
rshstatus=`rsh -n lilo /db/p2/oracle/names9208/restart_names.sh`
if $rshstatus <>0 then
errstatus=1
mailx -s "xirsol8dr" ordba@xilinx.com >> $log_dr
else if errstatus=0
echo "status to xirsol8dr successful"
this is the logic behind what im looking to do
i want to be able to connect to each box and check if successful or not with error status and send mail with log to dba if not successful.