Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Help with script

by BobMurray (Initiate)
on Oct 13, 2014 at 10:15 UTC ( #1103604=perlquestion: print w/replies, xml ) Need Help??

BobMurray has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, I am new to Perl, I have started studying a couple of books however I want to achieve something which is a out of my depth so I was wondering if someone could help me? I want to create a script in Perl, and run it initially on Windows. I want to be able to read IP addresses from a text file so I can change the IPs without editing the script, ping them once every few seconds and write failures only and Timestamps to another text file so I can easily see when drop outs occur. I have tried searching for this but have not been able to achieve it. I know this is asking a lot and I appreciate the help and the lesson.

Replies are listed 'Best First'.
Re: Help with script
by marto (Cardinal) on Oct 13, 2014 at 10:18 UTC

    Welcome!

    "I have tried searching for this but have not been able to achieve it."

    You haven't told us what part of the task you're having problems with. Searches for this specific problem are likely useless. Write down on paper all the steps you think are required to complete this task, try to implement each step in Perl code, tell us when you get stuck. PerlMonks for the Absolute Beginner/How do I post a question effectively?.

    Update: added tutorial link.

Re: Help with script ( ping list from file and log progress results to file )
by Anonymous Monk on Oct 13, 2014 at 10:23 UTC
Re: Help with script
by jonadab (Parson) on Oct 13, 2014 at 12:15 UTC

    Show us what you've tried before (use code tags), and tell us how it fails to meet your expectations (e.g., "I thought this function would ping $host and capture the results, but the results it returns are empty" -- or whatever the problem is that you're having).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2023-02-03 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (28 votes). Check out past polls.

    Notices?