From owner-freebsd-questions Tue Feb 16 18:11:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id 33C2A113FB for ; Tue, 16 Feb 1999 18:11:17 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id BAA25639; Wed, 17 Feb 1999 01:41:07 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA03508; Wed, 17 Feb 1999 01:40:52 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199902170140.BAA03508@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "Sean J. Schluntz" Cc: "FreeBSD Questions" Subject: Re: Help with user ppp and launching a script In-reply-to: Your message of "Tue, 16 Feb 1999 09:13:09 PST." <199902161710.JAA10842@void.agames.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 17 Feb 1999 01:40:52 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [.....] > What I need to do is have a script run from PPP automatically that when > the connection is make I can do a reverse look up on the IP address > assigned by PacBell (changes almost every time) and then set my computer > name based on that information (the then bounce sendmail so it will > recognize the change.) > > Any idea on how I can accomplish this? Thanks! Please reply directly as > I am not on the list. In ppp.linkup (see the sample file) MYADDR: ! myscript MYADDR Where ``myscript'' does an nslookup on $1 and then a ``hostname'' with the result followed by a ``killall -HUP sendmail''. > -Sean > > --- > Sean J. Schluntz schluntz@agames.com > Sr. Office Systems Administrator 408-434-5804 > Atari Games Corporation http://www.agames.com > > Mountain Dew and doughnuts...because breakfast is the most > important meal of the day. - ??? -- 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