Tshark filter issue
Hi, I have a tshark
command but it does not work. Basically I use it like that:
TSHARK_FILTER="\"port 18581 or port 5060 or (port 16050 and greater 72)\""
tshark -q -n -i any -f $TSHARK_FILTER -b files:100 -b filesize:40000 -w /tmp/test.pcap
I need to use TSHARK_FILTER
as variable. When I run the command, I am getting this:
tshark: A capture filter was specified both with "-f" and with additional command-line arguments.
How can I solve this?