tcpdump mailing list archives

Re: listing all devs


From: David Young <dyoung () pobox com>
Date: Wed, 14 May 2003 21:52:13 -0500

On Sun, May 11, 2003 at 10:20:04PM +0200, Gisle Vanem wrote:
The syntax of the tcpdump '-D' should IMHO be changed and
merged into the '-i' option. Especially considering the introduction
of remote and file capture in WinPcap 3.0. We should agree on a
uniform syntax. How about:
 List all local devices:     tcpdump -i?
 List all remote devices:  tcpdump -i rpcap://remotehost/?
 List all capture files in dir: tcpdump -i file://dir/?
 List all capture files in dir: tcpdump -r dir/?

  ? is a wildcard in most UNIX shells. Operators prefer not to have to
  escape characters in routine commands.

  What if a capture file contains the character '?' ?

  To list capture files in a directory, why not use the appropriate
  combination of ls, find, and file (or whichever the equivalent is in
  Windows), instead of tcpdump?

Dave

-- 
David Young             OJC Technologies
dyoung () ojctech com      Urbana, IL * (217) 278-3933
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: