From owner-freebsd-questions Wed Jan 17 15:20:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gdmckee.local (gdm.demon.co.uk [193.237.88.62]) by hub.freebsd.org (Postfix) with ESMTP id B4E5F37B401 for ; Wed, 17 Jan 2001 15:19:53 -0800 (PST) Received: from [192.168.0.5] (helo=p300) by gdmckee.local with smtp (Exim 3.16 #1) id 14J1qo-000BTX-00; Wed, 17 Jan 2001 23:18:46 +0000 Message-ID: <001301c080db$c294d1e0$0500a8c0@gdmckee.local> From: "G D McKee" To: "Cliff Sarginson" , "Christoph Sold" Cc: "freebsd-questions" References: <001d01c07fbe$1d8bf840$0500a8c0@gdmckee.local> <3A65DFB9.C46DA6B5@i-clue.de> <20010117211432.C898@raggedclown.net> Subject: Re: PPP Date: Wed, 17 Jan 2001 23:17:30 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Thanks for your reply. My Telco bills me for a min of a 5 min call. Therefore I might as well get FreeBSD to kick me off if there is no activity after this limit has been reached, as I am paying for the call anyway. Then after the five min is up it switches to a different timeout value. I read you could do it some where and I can't remember where. Gordon McKee ----- Original Message ----- From: "Cliff Sarginson" To: "Christoph Sold" Cc: "G D McKee" ; "freebsd-questions" Sent: Wednesday, January 17, 2001 8:14 PM Subject: Re: PPP > On Wed, Jan 17, 2001 at 07:08:57PM +0100, Christoph Sold wrote: > > > > > > G D McKee schrieb: > > > > > > Hi > > > > > > I have read it somewhere that there is a way if telling ppp (user mode ppp) > > > to stay live for a given period of time and the timeout after this. I can't > > > remember where I read it and would like to set it up. > > > > > > For example, the min call charge is 5min, so I might as well be connected > > > for this period of time as you get billed for it anyway, and then drop it > > > there is, lets say 60sec of inactivity. > > > > on the ppp command line, or in the configuration file: > > > > set timeout 0 deactivates the stay alive period, > > set timeout sets the stay alive period to seconds. > > > > The line is dropped after there is NO traffic for seconds. This may > > not be what you looked for, depending on your setup. > > No i think he is looking for a way of limiting the length of > connect time, whatever. Not a simple timeout. > I dont think PPP has this facility inbuilt. The easiest way > is probably to write a script to set off in ppp.linkup that sleeps > for the desired time and then hangs PPP up... > > #!/bin/sh > # > sleep 300 > killall -HUP ppp > > > Or something like that.. > > Cliff > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message