I am trying to run a Linux command strace -c ./client
in python with os.system()
. When i press ctrl+c
i get some output on the terminal.I have to send the ctrl+c
signal programmatically after one minute and want the terminal output that is produced after pressing ctrl+c
in a file.
A pseudo script will be really helpful.If i use subprocess.Popen
and then send ctrl+c
signal from keyboard i didn't get output on the terminal,so have to use os.system