From owner-freebsd-questions Fri Nov 14 02:10:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA18100 for questions-outgoing; Fri, 14 Nov 1997 02:10:17 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA18093 for ; Fri, 14 Nov 1997 02:10:08 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id JAA29329; Fri, 14 Nov 1997 09:49:50 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199711140949.JAA29329@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Norman C. Rice" cc: freebsd-questions@FreeBSD.ORG Subject: Re: user-mode ppp server with mgetty In-reply-to: Your message of "Thu, 13 Nov 1997 22:00:59 EST." <346BBEEB.41C67EA6@emu.sourcee.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 14 Nov 1997 09:49:50 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have a problem with using mgetty (AutoPPP) and user-mode ppp as a PPP > server. > Namely, ppp remains running after the connection is dropped and mgetty [.....] Nov 7 13:40:27 falcon ppp[16129]: Link: OsLinkdown: 205.181.248.230 Nov 7 13:40:28 falcon ppp[16129]: Phase: Disconnected! Nov 7 13:40:28 falcon ppp[16129]: Phase: Connect time: 1111 secs Nov 7 13:40:28 falcon ppp[16129]: Phase: NewPhase: Dead [.....] > exec /usr/sbin/ppp -direct $IDENT [.....] Hmm, I've never seen a report where ppp says ``Disconnected'' and doesn't go away ! In phase.c, the above "NewPhase: Dead" means exit in -direct mode. Isn't there a "PPP Terminated" message ? > I saw a question similar to this posted some time ago, but I never saw a > response. > My efforts to use the ! and !bg command within ppp.linkdown to kill the > ppp > process or even write to a file have been unsuccessful. I have tried [.....] You must use ``sh'' if you want to do redirections on the command line, otherwise you must do them inside your program/script. So, in the ppp configuration file !bg sh -c "mycommand >myoutput 2>&1" works as does !bg mycommand if ``mycommand'' contains #! /bin/sh exec >myoutput 2>&1 ..... > I apologize for the length of this plea for assistance, but I tried to > include > information that may help...and it is my first posting. > > Regards, > Norman C. Rice, Jr. > nrice@emu.sourcee.com -- Brian , , Don't _EVER_ lose your sense of humour....