Gentoo Archives: gentoo-user

From: "Szénási István" <szeist@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] {OT} Strange apache2 access_log entries
Date: Thu, 27 Sep 2007 14:46:25
Message-Id: bcfa7bdd0709270730t54c9a6fbm3cb29405c21de16d@mail.gmail.com
In Reply to: Re: [gentoo-user] {OT} Strange apache2 access_log entries by Grant
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