Hey all, need advice on something...
Have machine A and machine B. Both have to monitor a specific term and react. Its being run from cron (*/1 * * * * /run/this/command)...
Machine B needs to tail -f /var/log/messages for the field "is dead" then react:
tail -f /var/log/messages|grep "is dead" &> /dev/null
if [ "$?" != true ]
then
/run/this/command
fi
Any suggestions?
perl -e 'print $i=pack(c5,(40*2),sqrt(7600),(unpack(c,Q)-3+1+3+3-7),oct(104),10,oct(101));'
Have machine A and machine B. Both have to monitor a specific term and react. Its being run from cron (*/1 * * * * /run/this/command)...
Machine B needs to tail -f /var/log/messages for the field "is dead" then react:
tail -f /var/log/messages|grep "is dead" &> /dev/null
if [ "$?" != true ]
then
/run/this/command
fi
Any suggestions?
perl -e 'print $i=pack(c5,(40*2),sqrt(7600),(unpack(c,Q)-3+1+3+3-7),oct(104),10,oct(101));'