From owner-freebsd-questions Tue Feb 16 12: 3:39 1999 Received: from ns.clientlogic.com (ns.clientlogic.com [207.51.66.75]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA27117 for ; Tue, 16 Feb 1999 12:03:37 -0800 (PST) (envelope-from ChrisMic@clientlogic.com) Received: by site0s1 with Internet Mail Service (5.5.2448.0) id ; Tue, 16 Feb 1999 15:04:43 -0500 Message-ID: <6C37EE640B78D2118D2F00A0C90FCB441A5EFA@site2s1> From: Christopher Michaels To: "'Sean J. Schluntz'" , FreeBSD Questions Subject: RE: Help with user ppp and launching a script Date: Tue, 16 Feb 1999 15:04:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Sean J. Schluntz [SMTP:schluntz@pacbell.net] > Sent: Tuesday, February 16, 1999 1:01 PM > To: Christopher Michaels; FreeBSD Questions > Subject: RE: Help with user ppp and launching a script > > >I'm not too sure about answering 100% of your question, but you should be > >able to do something along the lines of the following. > > #1 in /etc/ppp/ you can have a file called ppp.linkup. Just add a > section > >for your isp with the same name as your section in ppp.conf > > I believe this is the bit of info I was missing. So if I make an entry > in the file called ppp.linkup I can have it call a script to do the rest > of the work? That would be perfict! > > Is there a way to run another script when the link goes down? > /etc/ppp/ppp.linkdown, same format. > > #2 i suppose you could write a script that parses the output of the > >nslookup or host commands and then uses the hostname -s command. > > #3 then if you kill -HUP sendmail to reread it's configuration it MAY > >pickup the different hostname. > > That's not a big problem. The system doesn't run X so I should be able > to change the host name on the fly. > > > Thanks for your help! > > -Sean > > >It all sounds good on paper but honestly don't know if it'll work in > >practice. Hopefully this will put you on the right track, or at the very > >least someone else on the list will add more info to this posting. > > > >-Chris > > > >> Is there any way to launch a script from the user ppp after it > connects? > >> Here's my problem: > > > --- > 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. - ??? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message