Date: Thu, 14 Nov 2002 09:50:36 -0800 From: "Krissada Jindanupajit (FreeBSD-question)" <freebsd@thaicommunity.com> To: "'Krissada Jindanupajit (FreeBSD-question)'" <freebsd@thaicommunity.com> Cc: <questions@FreeBSD.ORG> Subject: RE: resent - in txt format - using PPP to establish a PPPoE connection - won't renew if connection is dropped Message-ID: <004701c28c06$598c3b10$0100a8c0@sun> In-Reply-To: <004201c28c02$60e4dd30$0100a8c0@sun>
next in thread | previous in thread | raw e-mail | index | archive | help
This is just a simple way to play with your ISP. [test] #!/usr/bin/perl $PING = "/sbin/ping"; system($PING." -Qqc 5 yahoo.com"." > /dev/null 2>&1"); #change yahoo.com to your ISP gateway if ($? == 0) { print "Link is UP\n"; } else { print "Link is DOWN\n"; #DO WHAT EVER YOU WANT HERE } #------end test Note: /var/run/tun0.pid is the pid for ppp program I did not try this also. :D Play at your own risk. || || || || || || Sorry everyone, forgot to convert to txt before sending || || this, so I'll resend || || || || I'm having this huge problem: I have adsl, and I connect || || using that PPPoE garbage. I also just changed ISP for a || || less expensive one, and I'm beginning to realize why its || || less expensive. I'm running a machine with FreeBSD 4.7 || || stable on it and whenever it gets disconnected (about || || twice daily, believe it or not) it can't seem to || || "realize" that such is the case and thus never reconnects || || to get a new IP. Does anyone have any idea what I can do || || to fix this? Whenever I'm not around, and this happens, || || I have to go out of my way to drive to where this box is || || located to reboot it. It's the only way I'm able to || || force it to reconnect. || || || || TIA || || || || To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004701c28c06$598c3b10$0100a8c0>