From owner-freebsd-questions Thu Nov 14 9:50:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E0BE37B404 for ; Thu, 14 Nov 2002 09:50:53 -0800 (PST) Received: from citizen.in.th (thaicommunity.inet.co.th [203.150.2.224]) by mx1.FreeBSD.org (Postfix) with SMTP id C2FC043E77 for ; Thu, 14 Nov 2002 09:50:51 -0800 (PST) (envelope-from krissada@mailthai.com) Received: (qmail 50675 invoked from network); 14 Nov 2002 17:43:26 -0000 Received: from unknown (HELO krissada@mailthai.com@verify.mailthai.com) (63.203.206.204) by thaicommunity.inet.co.th with SMTP; 14 Nov 2002 17:43:26 -0000 From: "Krissada Jindanupajit (FreeBSD-question)" To: "'Krissada Jindanupajit (FreeBSD-question)'" Cc: Subject: RE: resent - in txt format - using PPP to establish a PPPoE connection - won't renew if connection is dropped Date: Thu, 14 Nov 2002 09:50:36 -0800 Message-ID: <004701c28c06$598c3b10$0100a8c0@sun> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <004201c28c02$60e4dd30$0100a8c0@sun> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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