Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by sparkyichi (Deacon)
on Jan 21, 2002 at 13:48 UTC ( [id://140356]=note: print w/replies, xml ) Need Help??


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

Very nice work. I was planning on making a Perl script to check when the connection is dropped and to reinitiate it as well as do some other things. I think you code will be of some help to me.
BTW
Isn't there a better way to get your IP info such a route. I guess it doesn't make much difference just seems a bit easier to me.
Good Luck

Sparky
FMTEYEWTK

Replies are listed 'Best First'.
Re: Re: Salvation for Dial Up Users (with some awful Perl)
by z3d (Scribe) on Jan 21, 2002 at 18:16 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://140356]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found