Get Result of Command using Python in Linux
Tagged with: Code, commnad, exec, execute, Linux, output, Python
Sunday, October 7th, 2007 11:38 PM
Execute a command and get its results using python in Linux
import commands
result = commands.getoutput("ls")