Date: Mon, 30 Nov 1998 09:18:12 -0500 (EST) From: "Joe \"Marcus\" Clarke" <marcus@jaguar.ir.miami.edu> To: Scott <sgregory@crosslink.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running a script after connecting with ppp Message-ID: <Pine.OSF.4.05.9811300916590.28518-100000@jaguar.ir.miami.edu> In-Reply-To: <3662A825.61E822A6@crosslink.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Create a /etc/ppp/ppp.linkup file, and add an entry for your dialing profile. Then add a !bg line for the script you wish to run: myprofile: delete ALL add 0 0 HISADDR !bg ifconfig -a | mail user Joe Clarke On Mon, 30 Nov 1998, Scott wrote: > I would like to run a script (more specifically, I would like to send my > IP address to a mail account (ifconfig -a | mail user - would suffice)) > whenever my box connects to my provider. I thought I had seen info on > this in the past but I cannot find it now. Any info on how to do this > would be appreciated. > > Thanks, > > Scott > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > 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?Pine.OSF.4.05.9811300916590.28518-100000>