Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 1998 21:19:00 -0500
From:      "Scott D. Gregory" <sgregory@crosslink.net>
To:        "'David Kelly'" <dkelly@hiwaay.net>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Running a script after connecting with ppp 
Message-ID:  <01BE1CA7.104F4820.sgregory@crosslink.net>

next in thread | raw e-mail | index | archive | help
Thanks for the info.  Its a little more than I'm looking for, but I'll keep 
it for future reference.  I was just looking for a way to find out what my 
IP address is when the system connects, this way I can connect to my 
machine when I'm not home.  If I can get to my mail thats sitting at my 
provider, I'll know my IP address to telnet in.

Thanks,

Scott


-----Original Message-----
From:	David Kelly [SMTP:dkelly@hiwaay.net]
Sent:	Monday, November 30, 1998 8:02 PM
To:	Scott
Cc:	freebsd-questions@FreeBSD.ORG
Subject:	Re: Running a script after connecting with ppp

Scott writes:
> 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.

I use pppd, and don't always want such an automatic action to be run.
Have attached the script I run from cron which starts pppd, uploads and
downloads email, and updates my rc5des buffer (all three at once, not
one after the other) then disconnects.

Script is a bit more verbose than it needs to be.
 << File: cronjobs.txt >>  << File: ATT00008.txt >> 

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?01BE1CA7.104F4820.sgregory>