Re: gathering trace rute output to a file?
- Date: Sun, 1 Jul 2018 20:46:25 +0200
- From: <tomas@xxxxxxxxxx>
- Subject: Re: gathering trace rute output to a file?
-----BEGIN PGP SIGNED MESSAGE-----
On Sun, Jul 01, 2018 at 07:19:02PM +0100, mick crane wrote:
> On 2018-07-01 06:00, Karen Lewellen wrote:
> >Well it seems it works like this.
> >traceroute domain-to-be-traced.com > trace-results.txt
> >or something like that.
> >process worked for me just now.
> >Thanks as usual,
> I'm asking 'cause I don't really know.
> What's the difference between a pipe "|" and sending the result
> somewhere ">" ?
The pipe starts a process (using the command and parameters right of
the pipe symbol) and sends the stdout of the "left" process to the
stdin of the right process as in:
ls -l | less
... this would send the output of "ls -l" to the input of "less",
which pages that input for you, or
ls -l | grep lolcat
...which sends the output of "ls -l" to the input of "grep lolcat",
this last filtering out the lines containing the pattern "lolcat",
while ">" would redirect the standard output to a file, like in
ls -l > /tmp/result
...which will create a file /tmp/result (or replace an existing
file) and fill it with "ls -l"'s output.
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
-----END PGP SIGNATURE-----