> -----Original Message-----
> From: Jun Garin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 25, 2000 9:44 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [plug] ppp and ipchains
>
> i also wrote a short script being run by cron:
>
> /usr/sbin/checkppp
> =====================================================================
> /bin/ping -c 5 router1 > /tmp/pingresult 2>&1
> count=`grep 'packets' /tmp/pingresult |awk '{print $4}'`
> if [ $count = 0 ]
> then
> echo "re-dialling..."
> /usr/sbin/dialupscript
> fi
> =====================================================================
>
> when cron runs the script, it detected that ppp0 is down, it then
> execute /usr/sbin/dialupscript and then it says "Connect
> script failed".
>
> BUT if i execute /usr/sbin/checkppp from the command line, it
> works fine.
> i also have the same /usr/sbin/dialupscript in rc.local and its also
> connecting.
>
> i also tried the script below but it wont connect through
> cron, through
> command line is fine.
Reference 2 ur earlier post, you said that once you reconnect ur linux to
the isp again, your workstations can't browse anymore. Adding the ipchains
script at the end of /etc/ppp/ip-up will solve your problem.
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]