1 |
> It looks like netstat -p only gives me a snapshot and I can't seem to |
2 |
> predict when these errors will show up. Can I have it run |
3 |
> continuously and keep the output or something? |
4 |
|
5 |
You can run it continously with the -c option. |
6 |
You can simple redirect the output, but if you don't want a large |
7 |
file, you should filter it. |
8 |
|
9 |
Here's 2 examples: |
10 |
netstat --protocol=inet -c > inet_log.txt |
11 |
netstat --protocol=inet -c | grep localhost > inet |
12 |
|
13 |
The first example will show all connections with the inet protocol family. |
14 |
The second will show the rows only which contains the "localhost" string. |
15 |
-- |
16 |
gentoo-user@g.o mailing list |