If I write the following command in a terminal it work perfectly
tcpdump -w 1.pcap -nnr <( zcat /work/save1.pcap.gz ) '((tcp==2 or tcp==4) and (dst port 80)) or (udp and dst port 5060)'
If I put it in a script I get an error like "unexpected "(" in line ..." I don't have the exact error line because I'm working on a server via ssh and now I don't have access to it. The server should run on BSD and right now I don't know which shell is used. I need to put such lines in a script because I need to execute this command on a large number of pcap.gz files.
preguntado el 08 de noviembre de 11 a las 17:11