Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2007 18:51:02 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Hinkie <Hinkie@paradise.net.nz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD Cron Job to run (ifconfig em0 down; ifconfig em0 up)
Message-ID:  <20070829185012.A14865@wojtek.tensor.gdynia.pl>
In-Reply-To: <01a901c7ea3d$0ad62720$1e00a8c0@cheqsoft.local>
References:  <01a901c7ea3d$0ad62720$1e00a8c0@cheqsoft.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070829185012.A14865>