From owner-freebsd-questions@FreeBSD.ORG Sat Apr 8 13:11:02 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BFD416A403 for ; Sat, 8 Apr 2006 13:11:02 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id B432943D45 for ; Sat, 8 Apr 2006 13:11:01 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 13112 invoked from network); 8 Apr 2006 13:10:59 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.128.28]) (envelope-sender ) by smtprelay03.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 8 Apr 2006 13:10:59 -0000 Date: Sat, 8 Apr 2006 15:10:59 +0200 From: Fabian Keil To: fbsd_user@a1poweruser.com Message-ID: <20060408151059.447abca0@localhost> In-Reply-To: References: <4435ADF5.4020102@vonostingroup.com> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_k2BrcznaKxSFZ6yuY_lV=5E"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-questions@FreeBSD.org Subject: Re: help with tcpdump cmd syntax X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 13:11:02 -0000 --Sig_k2BrcznaKxSFZ6yuY_lV=5E Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "fbsd_user" wrote: > I tried=20 > tcpdump -i rl0 src host 218.166.163.180 -w /usr/tcpdump.data > tcpdump -i rl0 host 218.166.163.180 -w /usr/tcpdump.data > tcpdump -i rl0 src ip 218.166.163.180 -w /usr/tcpdump.data =20 >=20 > but got syntax error msg with no hint of what was wrong >=20 > If I remove the -w stuff it works. Meaning it prints to the screen. > But I want to write to file >=20 > Can you help me out here on the syntax error? According to the man page the expression comes last. Fabian --=20 http://www.fabiankeil.de/ --Sig_k2BrcznaKxSFZ6yuY_lV=5E Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEN7ZjjV8GA4rMKUQRArKlAJ96Id2OR8W23VhiFI/tGKPJxGfBogCgqeNp +COm+YkojeWomxuUyx9P4HU= =73hz -----END PGP SIGNATURE----- --Sig_k2BrcznaKxSFZ6yuY_lV=5E--