http://qs1969.pair.com?node_id=140391


in reply to Re: Salvation for Dial Up Users (with some awful Perl)
in thread Salvation for Dial Up Users (with some awful Perl)

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

  • Comment on Re: Re: Salvation for Dial Up Users (with some awful Perl)