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.
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
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
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
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),
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
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
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
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
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
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
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
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
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
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
15 matches
Mail list logo