Help for this page

Select Code to Download


  1. or download this
    my @trace = split("\s",(`traceroute -w 2 -q 1 -i dmfe0 $ip_address`));
    my @trace_out = "";
            foreach (@trace){
    ...
                            @trace_out = (split /\s+/, $_ );
                    }
            }
    
  2. or download this
    open EXE, qq{/usr/sbin/traceroute -q 1 -w 2 -i dmfe0 $ip_address |};
    my @trace = <EXE>;
    my @trace_out = "";
    ...
                            @trace_out = (split /\s+/, $_ );
                    }
            }