From owner-freebsd-hackers Mon Jan 27 17:50:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA06908 for hackers-outgoing; Mon, 27 Jan 1997 17:50:31 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA06897 for ; Mon, 27 Jan 1997 17:50:10 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id MAA05913; Tue, 28 Jan 1997 12:55:00 +1100 (EST) Date: Tue, 28 Jan 1997 12:54:59 +1100 (EST) From: "Daniel O'Callaghan" To: Brian Somers cc: fredriks@mcs.com, hackers@freebsd.org Subject: Re: Modifications to pppd to make it log connecton times In-Reply-To: <199701280101.BAA19092@awfulhak.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 28 Jan 1997, Brian Somers wrote: > > Hi, > > Here are context diffs to pppd that makes pppd log the total > > time in minutes that it has been connected(similar to what ppp does). > > I don't know if I have caught every way pppd can exit(it obviously > > doesn't do this if it dumps core or the machine panics) to make sure > > the data is printed out, but it does work for the normal cases for sure. > [.....] I did this using an external program. The user's login shell is a Bourne shell script with a 'checkin' facility, run before execing pppd. Getty is run from a script which has a 'checkout' facility. That way, whenever pppd exits, and getty is run, the user on that tty is checked out. Danny