Script to run at PPPoE connect?

michaelsanford

Translator, Web Developer
Application: I have a SnapperHead server that some of my friends really love watching (guess they like X better than Xp ;)) but I'm on a PPPoE connection, and thus don't want to give out my IP address again and again...

I thought of a clever work-around: make a local script that executes once a PPPoE connection is established that prints a little HTML page with my IP address, and uploads it to my web server (iDisk or whatever).

The question, how do I make a script execute when a PPPoE connection is established? AppleScript or tcsh or PHP4 are all plausible, but I'd most prefer PHP4.

There's a simple way to do it manually, just make a PHP script that does it at the click of a button on a localhost page, but I'd like it to be automatic...

Thanks!
 
Back
Top