tcpdump mailing list archives

RE: listing all devs


From: "Fulvio Risso" <fulvio.risso () polito it>
Date: Thu, 15 May 2003 15:36:15 +0200

Hi.

-----Original Message-----
From: owner-tcpdump-workers () sandelman ottawa on ca
[mailto:owner-tcpdump-workers () sandelman ottawa on ca]On Behalf Of Gisle
Vanem
Sent: giovedì 15 maggio 2003 13.18
To: tcpdump
Subject: Re: [tcpdump-workers] listing all devs


"David Young" <dyoung () pobox com> said:

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

It's a wildcard in Windows/OS too? It doesn't stop us from using
it for other things than filespecs. Do toy mean the shell or crt will
glob an arg like "file://?"

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

Doesn't matter if readdir() will find it and the file is longer than "?".
Is it even possible to name a file "?". ?

  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?

It would not be clean from a bunch of '*.cap', '*.dump', '*.trace'
etc. files which are libpcap capture files. My idea was to open
all files in a dir and look for the tcpdump signature.

--gv

When you wants to list the network adapters you have little choice. All the
adapters will be listed.
I prefer to see the same behaviour on files as well.
If you type

    file://directory_name

all the libpcap files contained into it will be listed.

Cheers,

        fulvio

-
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: