0
我试图执行tshark的命令来查找在bash命令特定IP地址的数据包,而正在执行脚本的错误如下如下::如何从bash脚本执行tshark的命令
while read client
do
echo "Client Adrees:" $client1
cmd="tshark -R \"(ip.src == 10.129.5.192)\" -r 12clients.pcap"
echo $cmd
done < input
: :
Client Adrees: 10.129.26.154
tshark -R "(ip.src == 10.129.5.192)" -r 12clients.pcap
tshark: Read filters were specified both with "-R" and with additional command-line arguments
在此先感谢...:d
http://mywiki.wooledge.org/BashFAQ/050 – tripleee