Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 1997 09:49:50 +0000
From:      Brian Somers <brian@awfulhak.org>
To:        "Norman C. Rice" <nrice@emu.sourcee.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: user-mode ppp server with mgetty 
Message-ID:  <199711140949.JAA29329@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Thu, 13 Nov 1997 22:00:59 EST." <346BBEEB.41C67EA6@emu.sourcee.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711140949.JAA29329>