I need to store the result of a shell command that I executed in a variable, but I couldn\'t get it working. I tried like:
import os call = os.system(\"
commands.getstatusoutput would work well for this situation. (Deprecated since Python 2.6)
import commands print(commands.getstatusoutput("cat syscall_list.txt | grep f89e7000 | awk '{print $2}'"))