in reply to How do I print output to STDOUT instead of to an HTML file?
With your help my script now looks like this:
#!/usr/local/bin/perl -w use strict; my @machines = ('ldap0.slb.com','ldap.slb.com','ldap2.slb.com'); foreach my $machine (@machines) { my $response = `ping -l 64 -n 1 $machine`; my $output .= "$machine: $response"; print "$output\n"; }
Now I just need to work on parsing out the garbage I don't want with regexen. : (
Thanks again,
protos
|
|---|