in reply to Re^6: old file descriptors not being cleaned up
in thread old file descriptors not being cleaned up
I also tried this as a list and a string but it made no difference either. "$pingcmd $hosts[$i] $pingsize $pingnumber 2>/dev/null </dev/null"my @cmd = split " ", "$pingcmd $hosts[$i] $pingsize $pingnumber"; $pid = open $pings[$i][1], "-|", @cmd or die "Error executing $cmd[0]: $!\n";;
The reason I'm not using Net::Ping is that u have to be root to make ICMP echo requests. Net::Ping::External just does the same thing I'm doing now. I also need to ping lots of hosts at once.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: old file descriptors not being cleaned up
by mr_mischief (Monsignor) on Dec 18, 2010 at 10:35 UTC |