Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 01:40:52 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        "Sean J. Schluntz" <schluntz@pacbell.net>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Help with user ppp and launching a script 
Message-ID:  <199902170140.BAA03508@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Tue, 16 Feb 1999 09:13:09 PST." <199902161710.JAA10842@void.agames.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
[.....]
> 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 <brian@Awfulhak.org> <brian@FreeBSD.org> <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
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




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