On Aug 29, 2007, at 8:03 AMAug 29, 2007, Hinkie wrote:
Hi
I want to run a cron job in /etc/crontab that runs (ifconfig em0
down; ifconfig em0 up) if my cables static ip gateway can't be
pinged but I can't figure it out. I can't get the syntax that runs
in the command window, to then put intot the crontab....
Can anyone help me?
Here's what I'd use:
ping -c 1 a.b.c.d; TESTV=$?; if [ $TESTV != 0 ]; then `ifconfig em0
down`; fi
HTH
-----
Eric F Crist
Secure Computing Networks
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"