I just want to run tcpdump in background using paramiko.
tcpdump
Here is the part of the code:
ssh = paramiko.SSHClient() ssh.set_missing_host_k
just need add a sleep command,
cmd = "(nohup tcpdump -i eth1 port 443 -w /tmp/dump20150317183305940107.pcap) &"
change to
cmd = "(nohup tcpdump -i eth1 port 443 -w /tmp/dump20150317183305940107.pcap) &; sleep 1"