Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. geoffinva3

    Need Help Creating Loop for unix ping command in perl

    You are the MAN!!!!!!!!!!!!!!!!!! it was my perl path It was in a non-standard location /opt/OV/bin/Perl/bin/perl wooohooo thanks and thanks for the extra stuff
  2. geoffinva3

    Need Help Creating Loop for unix ping command in perl

    Mike the file exists I created it form your input and called it test.ovpl did a chmod +x on it and issued it as ./test.ovpl and the filename containing the IP's
  3. geoffinva3

    Need Help Creating Loop for unix ping command in perl

    I get the error: bash-2.03$ test.ovpl testfile bash: ./test.ovpl: No such file or directory
  4. geoffinva3

    Need Help Creating Loop for unix ping command in perl

    I tried Perl and wrote the following bit of code: Now I need to not just print each line in the file to standard out but I want to ping each ip address on each line. Any ideas? Thanks 1: #!/usr/local/bin/perl 2: 3: if (open(MYFILE, "file1")) { 4: $line = <MYFILE>; 5...
  5. geoffinva3

    Ping perl script

    dah yes that would be a very smart idea
  6. geoffinva3

    Ping perl script

    I tried Perl and wrote the following bit of code: Now I need to not just print each line in the file to standard out but I want to ping each ip address on each line. Any ideas? Thanks 1: #!/usr/local/bin/perl 2: 3: if (open(MYFILE, "file1")) { 4: $line = <MYFILE>; 5...
  7. geoffinva3

    for loop command

    OK thanks for the help yesterday. I decided to use some of my time for better use. I went home last night and learned something if you can beiev it. and by god it worked it printed each line to standard out. Now I want to change it to read the line and than execute the ping command on each any...
  8. geoffinva3

    for loop command

    You guys are the best if you ever need SNMP assistance please write. Geoff
  9. geoffinva3

    for loop command

    Ok I don't have a million years to learn unix scripting I just need the syntax to use the for loop command I have a file with a list of IP addresses in it I want to excute the command ping on each address in the list. In addition it should output to a file where I see the ip address of each...

Part and Inventory Search

Back
Top