Ask Your Question

Revision history [back]

For your posted python issue, try adding a space between the tcp stream index and the output redirection operator ">", i.e.

#!usr/bin/python
import os

for m in range(14):
    print("tshark -r data/aim_chat_3a.pcap tcp.stream eq %i >data/%i.txt" %(m, m))
    os.system("tshark -r data/aim_chat_3a.pcap tcp.stream eq %i >data/%i.txt" %(m, m))