On Thu, Apr 05, 2007 at 04:19:54PM -0500, Michael Bann wrote:
> 
> I run "tshark -f `cat /path/to/my_filter`" and I get the following error:
> "tshark: Capture filters were specified both with "-f" and with 
> additional command-line arguments"

You need to put the filter in quotes so that the OS sees it as 
one word:

tshark -f "`cat /path/to/my_filter`"

should do the trick. Just tried it myself:

[EMAIL PROTECTED] ~
$ cat filter
host 10.31.103.64 or
host 10.31.100.254

[EMAIL PROTECTED] ~
$ tshark -f `cat filter`
tshark: Capture filters were specified both with "-f" and with additional 
command-line arguments

[EMAIL PROTECTED] ~
$ tshark -f "`cat filter`"
Capturing on eth0
0 packets captured

[EMAIL PROTECTED] ~
$


Hope this helps, cheers,


Sake
_______________________________________________
Wireshark-users mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-users

Reply via email to