title: How to terminate tracepath when no-reply is returned?
body: <p>I'm writing a shell script (in Linux) to try to find all the IP address from one machine to another. Right now I'm scanning the network by limit the range of the possible IP addresses, but it won't be 100% accurate. There will be times hitting IP address that doesn't exists, when using <code>tracepath 192.x.x.x</code> will return me a long list of <code>no-reply</code> rather than waiting for it to eventually timeout. How do I quickly stop the current <code>tracepath</code> command inside a shell script ? </p>
  
  <p>Is there anyway to read the output of the tracepath and detects if "<code>no-reply</code>" is returned, if so terminate the current <code>tracepath</code> IP address and moving on to the next one ?</p>