I am trying to pass below argument from python. Before i used to use os system etc to do that, now i am trying to do it using pexpect and popen.
However i could not pass |, sort, uniq kind of commands. For example,
tshark -o column.format:'"Source", "%s", "Destination", "%d", "dstport", "%uD"' -r $FILE |sort|uniq
I devide the command as lists but could not figure out how to send |sort|uniq part.
Can someone help me on this with an example?