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 TouchToneTommy 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: *

  • Users: geoffinva3
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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