The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How do I ping each element
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How do I ping each element
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
01-05-2009
popeye
Registered User
Join Date: Mar 2008
Posts: 25
How do I ping each element
@listip is a list of ips
my $PING = "/usr/sbin/ping";
for ($lindex = 0; $lindex <= $#listip; $lindex++) {
print $listip[$lindex] . "\n";
$PING $listip[$lindex] ;
}
popeye
View Public Profile
Find all posts by popeye
Find popeye's past nominations received
Find popeye's present nominations given