[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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?
Thanks,
Karen

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@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand


Reply to: