eval { local $SIG{ALRM} = sub { die "timeout" }; alarm( 10 ); $temp = `traceroute -I -n $hostname > $data_file_dir/traceroute.$$`; alarm( 0 ); };