Posts Tagged With: exec

Get Result of Command using Python in Linux

Tagged with: , , , , , ,

Execute a command and get its results using python in Linux


import commands

result = commands.getoutput("ls")
No Comments »