From owner-freebsd-questions Sat May 16 15:31:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA19163 for freebsd-questions-outgoing; Sat, 16 May 1998 15:31:20 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA19135 for ; Sat, 16 May 1998 15:31:11 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id XAA27112; Sat, 16 May 1998 23:05:16 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199805162205.XAA27112@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: BEAUPRE Antoine cc: freebsd-questions Subject: Re: PPP curious behaviours In-reply-to: Your message of "Thu, 14 May 1998 18:46:42 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 16 May 1998 23:05:15 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi. > > Since I get my ppp connection up, user ppp is causing me some problems... > > I already posted some questions about these but got no or answers rather > out of range. > > When I boot up, I get a ppp daemon running in bkgnd. (ppp -auto provider) > Now, it's working fine alright, and I can use other comm software until I > awake ppp for the first time (via lynx or ftp, or ...). After ppp is > awaken, I can't get it to let the line loose. Ppp should close the device when it's not in use. You can check /var/spool/lock for the device lock file (man uu_lock) and you can use pppctl to ``show modem''. If the lock file remains or the modem shows open, then something's wrong. > Sometimes it's starting without reasons, Check the FAQ (http://www.FreeBSD.org/FAQ/userppp.html). You need to determine what's causing the connect - probably a DNS resolution. > sometimes just after I disconnect it, > always when I start Pine, > not when I use mail, > sometimes when I start minicom... > > (nice little song uuh?:) Definitely sounds like a DNS lookup. > When I use minicom, ppp tries to connect, and minicom can't do nothing but > watch text pass by and ppp shouting. Shouldn't minicom get a lock on the > modem or something like this? It's probably doing the DNS lookup first. I don't know anything about minicom, but if should create a lockfile in the same was as the uu_lock() routine does (or maybe should even use uu_lock under FreeBSD). > Pine is another bug. I haven't set it to check mail on the remote (I use > fetchmail) specially cause I wanted to read my mail without getting on the > phone line... What's causing this? > > I have a disconnect script to shut up ppp, and it's doing its job. When I > use it, I hear the modem hanging up. It looks like this: > ------------------------------------------------------ > #! /bin/sh > # Disconnects from the internet > > exec /usr/local/bin/fetchmail --quit > exec pppctl /var/run/internet set timeout 300\; close > ------------------------------------------------------- > I think I've found this in the handbook. The fetchmail stuff is my adding. I doubt it's doing its job. The `exec' throws away the existing shell and executes the specified programs. Only use this in one-line scripts. The above will exec fetchmail and never come back to do the pppctl - remove the `exec's. > I got to kill the ppp daemon via top in order to free my phone line. This > is extremely bugging, any suggestion is welcome. You'll need to supply more info - what do `show modem' and `show lcp' say. Does the lock file exist in /var/spool/lock ? > Thank you!!! > > +-----------------------------------+ > | Free the world from businessmen | > | Free yourself from your money | > +-----------------------------------+ > Free the web. > Spidey > > visit: http://www.JSP.UMontreal.CA/~beaupran -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message