From owner-freebsd-questions Mon Jun 15 12:12:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA08421 for freebsd-questions-outgoing; Mon, 15 Jun 1998 12:12:08 -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 MAA08373 for ; Mon, 15 Jun 1998 12:11:45 -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 UAA08887; Mon, 15 Jun 1998 20:09:39 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199806151909.UAA08887@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: wheely cc: Brian Somers , freebsd-questions@FreeBSD.ORG Subject: Re: PPP: !bg processes In-reply-to: Your message of "Mon, 15 Jun 1998 13:50:47 +1200." <199806150150.NAA07273@smtp1.ihug.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 Jun 1998 20:09:38 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > At 07:30 AM 15/06/98 , Brian Somers wrote: > > >I don't follow. What did it support ? 2.2.5 redirects descriptors 0 > >1 & 2 to /dev/null, fork()s and daemon(1, 1)s before execing the > >program. This is exactly the same behaviour as the 980612 version. > > Ok, I think I have confused you by saying iI would like it on the console. > I run ppp by telneting into FreeBSD from win95, giving ppp its own screen > using "screen", typing ppp, dial provider... > In my ppp.linkup I have !bg dnsupdate. On ppp2.2.5 the results on this > program came up in the ppp telnet window. An example from the program is > printf( "Host %s.%s NOT updated.\n", myhost, MYDOMAIN );. On ppp980612 I do > not see a thing back from the script unless I do it manually (I just found > manually works ok ie. typing !bg dnsupdate in ppp). I know it is executing > (or trying to) on the linkup cause I "set log local +Command." and I am > getting Command: MYADDR: !bg dnsupdate Ah, The problem here is that the old version of ppp used to have either one or zero command prompts. It was therefore easy to decide where to attach the commands output. Now, output goes to /dev/null unless a specific ``prompt'' has executed the command. > wheely -- 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