FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Wed Aug 29 09:51:12 PDT 2007


fragment from my test program (used for other thing but doesn't matter)

/sbin/ping -i 0.5 -s 1450 -c 3 tested_host >/dev/null 2>/dev/null
if [ $? != 0 ];then
  perform_action_if_doesnt_ping
fi





More information about the freebsd-questions mailing list