![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Salvation for Dial Up Users (with some awful Perl)by z3d (Scribe) |
on Jan 21, 2002 at 18:16 UTC ( #140391=note: print w/replies, xml ) | Need Help?? |
Hey there Sparky,
That's my bit of lame bained code - lost my login somewhere between writing and posting. route might work, just didn't think of it at the time. I was trying to capture the dynamicly generated IP address that my ISP was giving me, and my routing table only showed that ppp0 was my default gateway, not what the dynamicly generated IP was. I could be wrong, networking is not only not my forte, I tend to rely on two terminals at a time, one with a man page and the other with a prompt.
Looking over my code, I think I could probably cut it down a lot, maybe break the connection/file checking into a sub to minimize overhead, etc.. The version I posted was also designed to email a standup account my dynamic IP address - I also have a version that is really paired down, just checking to see if you are online or not (incorporated into a small shell script, it creates the ONLINE file, the shell script just checks for that file before running your tasks). If you want to save time on cutting it up, I can send that along as well. z3d
In Section
Cool Uses for Perl
|
|