1 |
On Thu, 14 Apr 2011 13:35:43 Benny Pedersen wrote: |
2 |
> tcptraceroute ipv6.google.com 80 |
3 |
> |
4 |
> shows me a nice buffer overflow, i like to camture it into a log file but |
5 |
> lost on how :/ |
6 |
> |
7 |
> tryed: |
8 |
> tcptraceroute ipv6.google.com 80 | less |
9 |
> |
10 |
> and press s from less to save it, still no file content to save :( |
11 |
|
12 |
The usual method is the '>' redirect operator, like this: |
13 |
|
14 |
tcptraceroute ipv6.google.com 80 > /path/to/log/file |
15 |
|
16 |
If the error message is going to STDERR (as it should be), you will need to |
17 |
redirect that instead: |
18 |
|
19 |
tcptraceroute ipv6.google.com 80 2> /path/to/log/file |
20 |
|
21 |
To capture both, redirect STDOUT first, then set STDERR to match: |
22 |
|
23 |
tcptraceroute ipv6.google.com 80 > /path/to/log/file 2>&1 |
24 |
|
25 |
|
26 |
-- |
27 |
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol |
28 |
Asking for technical help in newsgroups? Read this first: |
29 |
http://catb.org/~esr/faqs/smart-questions.html#intro |