On another w32 system:

perl -e "@trace=`tracert -w 200 -p 30 perlmonks.org`;foreach $i (@trac +e){print \"$i\n\";}" -p is not a valid command option. Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] targ +et_name Options: -d Do not resolve addresses to hostnames. -h maximum_hops Maximum number of hops to search for target. -j host-list Loose source route along host-list. -w timeout Wait timeout milliseconds for each reply.

Remove the -p 30 (did you mean -h 30 as suggested by your text? If so, that appears to be the default and is thus unnecessary) and the output (omitting the first few hops) is as expected:

Tracing route to perlmonks.org [66.39.54.27] over a maximum of 30 hops +: ... 9 59 ms 59 ms 59 ms 0.so-5-2-0.XL3.IAD8.ALTER.NET [152.63. +36.25] 10 70 ms 77 ms 73 ms pairnetworks-gw.customer.alter.net [63 +.65.185.2] 11 * * * Request timed out. 12 75 ms 71 ms 73 ms ads.perlmonks.org [66.39.54.27] Trace complete.

which underscores the value of mr_mischief's suggestion.


In reply to Re^2: Tracert or resolve machine name by ww
in thread Tracert or resolve machine name by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.