Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2013 09:08:07 +0100
From:      Florent Peterschmitt <florent@peterschmitt.fr>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-stable stable <freebsd-stable@freebsd.org>
Subject:   Re: tcpdump | grep pattern > capture   nothing got
Message-ID:  <528DBF67.1090107@peterschmitt.fr>
In-Reply-To: <966AFB1F-D273-4754-96AC-01298FBF6F42@FreeBSD.org>
References:  <528D0302.7090906@peterschmitt.fr> <966AFB1F-D273-4754-96AC-01298FBF6F42@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--adqij5X9joSeNJljP9IOkr7br1avSBrbM
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 20/11/13 23:38, Dimitry Andric wrote:
> On 20 Nov 2013, at 19:44, Florent Peterschmitt <florent@peterschmitt.fr=
> wrote:
>> I use FreeBSD 10.0-BETA3 amd64, upgraded from 9.2-RELEASE with
>> freebsd-update.
>>
>> I was capturing with tcpdump and doing some grep on it:
>>
>> # tcpdump -li nfe0 port 53 | grep Refused > capture.txt
>>
>> I was surprised that capture.txt is totally empty. If I don't redirect=

>> the output, then it writes what I need on stdout.
>=20
> Try grep --line-buffered instead (which incurs a performance penalty,
> but you probably don't care in this case).
>=20
> BSD grep also supports this option.
>=20
> -Dimitry
>=20

It works, thank you. But, I didn't have to do this on a GNU/Linux
machine. Is that normal?

--=20
Florent Peterschmitt           | Please:
florent@peterschmitt.fr        |  * Avoid HTML/RTF in E-mail.
+33 (0)6 64 33 97 92           |  * Send PDF for documents.
http://florent.peterschmitt.fr |  * Trim your quotations. Really.
Proudly powered by Open Source | Thank you :)


--adqij5X9joSeNJljP9IOkr7br1avSBrbM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSjb9nAAoJEFr01BkajbiBstwP/RHqpeQ6cn0aQoShi9WhAdnp
Tnwy81iQM1iqB7UTUNZntOCeu5ZHypBZihSPItMxLp8pvHSdMV44lPmGNPqld6Xk
xnGGDosnmo9pZq0i9+I6NnASsd73U4WxUs80G2qqGSlRq+IiXRfkTmuNkDAvVdjT
GMGjATt9XA+GB8J1Ou3vdb+lAo5QTOY2JQU2prdp/Qv/5kBnA3khVGx9ND/k+CWF
cw13zRdjhbiIXseCVFwGl1WMDKVLpHh1a47IZzEBfEWpD0OnAzGqmyrS1r4NgFiB
EkWv/+mKVoQ9lgg+YNeOxgw7JySe3vm8MOtjTJiRf1BKcOmLKhAg4EvU3uXAkbYu
7WK/RaawXeKkkC2xV3FS/v0RBnnibG0/BAyDkD5rpiovDUqxOx5fpBo6OgyLxEVy
wazrHBQ7L0Zv8Xlhbi4U2CKTpTIEgDDXhxY1rB/tQXv5q2LE6V/ZdwZ37OnXOTE/
6b1EdV/6WHZFou8Rcd89KnV53BGohgUSOq3RDMfuVUI9c+rZIeDoNLGvRYBLdyMz
mlA+SuuP/FLDPQg2u52UM9tGPk23w3FCChk8QyztU5TPBXwpYSGt07IGKlnXhji8
Er+NRY+uz6b4C9/Ni4Zlnk/N4VIC1HGGt+mccQaG0hbDUC5ms5ZKkONKFZ289sWZ
olEGCQ33u/AsmWpJum1V
=iv1/
-----END PGP SIGNATURE-----

--adqij5X9joSeNJljP9IOkr7br1avSBrbM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?528DBF67.1090107>