[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Checking if the network is up



On Fri, 10 May 1996, Luis Francisco Gonzalez wrote:

> The question is:
> 
> Is there any way of checking whether the network is responding so that I only
> run popclient when it is?

Try this:

#!/bin/sh
#Change ppp0 to the network device (eth0, etc.)
DEVICE=ppp0
if [ -r /var/run/$DEVICE.pid ]; then
      popclient mail.myisp.com
fi

-- Run.exe
First Law of the Universe:
    No law applies to ALL of the Universe
runexe@ntplx.net http://www.ntplx.net/~runexe/ Finger me for PGP key



Reply to: