On Fri, 19 Nov 1999, Keith Bennett wrote:

<snip>

->if i login to the remote machine and work from there everything
->is usually fine. if, however, i just set up the ppp link and then
->connect elsewhere (ie. ftp to other sites, browse the web, etc.)
->the connection never lasts longer than about 3 minutes.

<snip>


*** Some ISP have a time out set to the connexion. This means that if
you're connexion is inactive for a certain amount of time your ISP
deconnects you in order to free the line for another customer. Normally
there should be a delay of 15min. The last time I've seen a deconnect
delay of 3 min. was with an ISP who had too many customer on to few a
lines. You could (maybe) solve this problem by keeping the connection
alive with a ping every so many minutes. I use this script:

#!/bin/bash
# Script created Oct 1998 by Zoran GRBIC, Paris
# mail: [EMAIL PROTECTED]

# Sends a ping each 1,5 min. and keeps the connection to ISP alive. Runs
# continuosly ("while" statement) unless there's no connexion. Then it
# will exit ("done" statement). In that case it exits and shows the error
# message. This will also stop alive when you deconnect.
#
# Enter your ISP's domain name here. It's the name on the right of the "@"
# sign. Change [xxx] with your information: ISP=isp.com
ISP=xxxx

# Put here the delay in seconds you want your ISP to be pinged, "woken up".
ZZZZ=xxxx

while :
  ping -c 1 $ISP
do
  sleep $ZZZZ
done
echo ""
echo "##### ALIVE ERROR ######"
echo "#                      #"
echo "#  No PPP connexion... #"
echo "#                      #"
echo "########################"
echo ""

Cheers!
   _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ 
  _/  Zoran GRBIC            _/ [EMAIL PROTECTED]  _/  Paris, FRANCE    _/
 _/  Analyste UNIX & Oracle _/    Linux advocate    _/  Micro$oft clean  _/
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
Mailed with Linux & Pine...

"Microsoft is now talking about the digital nervous system. I guess I
would be nervous too if my system was built on their technology."
        -- Sun Microsystems President Scott McNealy.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to