Web lists-archives.com

Re: gathering trace rute output to a file?

On 01/07/18 15:45, Karen Lewellen wrote:
Hi folks,
when running tracerute, is there an option that exports the results to a file that can be shared?

Can you use shell redirection? In bash:

traceroute host &>logfile

In other Bourne shells:

traceroute host >logfile 2>&1

These commands redirect both standard output and standard error to logfile. It is also possible to redirect them separately. See a shell guide for details.

Kind regards,

Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
Transient Software Limited <https://transient.nz/>
New Zealand