Python tcpdump using subprocess.Popen -
i'm converting shell script python, , have run across tough issue tcpdump.
this tcpdump call in shell. basically, reading text file, each line contains name of pcap, , tcpdump filtering each pcap, , outputting results.
cat /home/userid/loading_dock/load.txt | parallel -j 3 tcpdump -r /mnt/pcap/captures/{} \'"host $ip or (vlan , host $ip)"\' -w /home/userid/loading_dock/{}.pcap > /dev/null 2>&1 using above command how in world make call using subprocess.popen? seems mess...
best regards,
Comments
Post a Comment