Checking if the network is up

1996-05-14 Thread Luis Francisco Gonzalez
Hi, just to thank everybody for ansering my query about checking if the network was up. I am using fping to my gateway and it works fine. I have as always also learnt a lot from you all! Thanks, Luis.

Re: Checking if the network is up

1996-05-12 Thread Rob Browning
e == eckes [EMAIL PROTECTED] writes: e Actually if your modem is configured correctly (CD drop on Carrier e loss C1), and if the pppd is given the option modem the Process e will hangup if the line goes down. This is not the actual hardware e handshake, but on of the RS232 signals. Right, I

Re: Checking if the network is up

1996-05-12 Thread Rob Browning
M == Maarten Boekhold [EMAIL PROTECTED] writes: I just have my ip-up script (it's a ppp config script, see man pppd) touch a file in /usr/local/etc/ppp when I connect, and ip-down remove the file when I disconnect. Then I can just check for the existence of that file, and know if I'm

Re: Checking if the network is up

1996-05-12 Thread Craig Sanders
On Fri, 10 May 1996, Rob Leslie wrote: Try using `fping' on your network gateway host. e.g.: if fping -q $GWHOST then popclient ... fi Or, if you prefer compactness (also good for crontabs): fping -q $GWHOST popclient ... Substituting $GWHOST with the name/address of

Re: Checking if the network is up

1996-05-11 Thread Doug Geiger
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? I wrote a series of scripts to handle this (however a virus infected my partition table - am still re-installing),

Re: Checking if the network is up

1996-05-11 Thread Rob Leslie
Is there any way of checking whether the network is responding so that I only run popclient when it is? Try using `fping' on your network gateway host. e.g.: if fping -q $GWHOST then popclient ... fi Or, if you prefer compactness (also good for crontabs): fping -q $GWHOST

Re: Checking if the network is up

1996-05-11 Thread Dirk . Eddelbuettel
Luis Is there any way of checking whether the network is responding so Luis that I only run popclient when it is? Here's my crontab entry. Every 5 minutes, fping tests whether we can connect to the pop hosts. In case we are, popclient is called with the account password on rosebud being

Re: Checking if the network is up

1996-05-11 Thread Buddha Buck
Hi, I am trying to write a script to use popclient to download the mail from the office's server. This will run on a portable. I want the script to check whether the network is up before attempting to retrieve any mail, as I am likely to use the notebook in other places and won't be hooked

Re: Checking if the network is up

1996-05-11 Thread Maarten Boekhold
I just have my ip-up script (it's a ppp config script, see man pppd) touch a file in /usr/local/etc/ppp when I connect, and ip-down remove the file when I disconnect. Then I can just check for the existence of that file, and know if I'm connected. Alternatively, you could doesn't work if

Re: Checking if the network is up

1996-05-11 Thread Doug Geiger
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

Re: Checking if the network is up

1996-05-11 Thread eckes
Hello, It does if you also have these set. lcp-echo-interval lcp-echo-failure Actually, I think hardware handshaking should handle the problem, but it doesn't always seem to (grrr). Actually if your modem is configured correctly (CD drop on Carrier loss C1), and if the pppd is given

Checking if the network is up

1996-05-10 Thread Luis Francisco Gonzalez
Hi, I am trying to write a script to use popclient to download the mail from the office's server. This will run on a portable. I want the script to check whether the network is up before attempting to retrieve any mail, as I am likely to use the notebook in other places and won't be hooked to the

Checking if the network is up

1996-05-10 Thread Raul Miller
Luis Francisco Gonzalez: Is there any way of checking whether the network is responding so that I only run popclient when it is? That usually depends on what exactly you mean by the network. If you're using diald or some such, take a look at the result of `route`. If the network is always

Re: Checking if the network is up

1996-05-10 Thread Maarten Boekhold
Hi, how about: #!/bin/sh if ! ping -c 3 known_address_which_is_in_etc_hosts | grep -q round-trip then do_your_stuff fi We use this to check our leased line every 5 mins. Maarten ___ | Maarten

Re: Checking if the network is up

1996-05-10 Thread Rob Browning
L == Luis Francisco Gonzalez [EMAIL PROTECTED] writes: L Is there any way of checking whether the network is responding so L that I only run popclient when it is? I just have my ip-up script (it's a ppp config script, see man pppd) touch a file in /usr/local/etc/ppp when I connect, and ip-down