bash: check for network

Dan Wilson dan at acucore.com
Thu Apr 14 22:40:00 MDT 2005


On Thu, 2005-04-14 at 10:06 -0600, Nicholas Leippe wrote:
> ping -c 1 <some ip> >/dev/null
> if [ $? = 0 ]; then # ok
>     ...
> else
>     ...
> fi

That's what I needed.... thanks!

-Dan




More information about the PLUG mailing list