vancetech has asked for the wisdom of the Perl Monks concerning the following question:
I assume that the traceroute in backticks will be terminated after the ALRM signal is sent, but I suspect that this is not the case and the traceroute program is waiting to perform the default of all 64 hops before terminating.eval { local $SIG{ALRM} = sub { die "timeout" }; alarm( 10 ); $temp = `traceroute -I -n $hostname > $data_file_dir/traceroute.$$ +`; alarm( 0 ); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Leaky pipes?
by salva (Canon) on Mar 22, 2006 at 09:17 UTC | |
by vancetech (Beadle) on Mar 22, 2006 at 19:44 UTC |