Execute a command and get its results using python in Linux
import commands
result = commands.getoutput("ls")
This entry was posted
on Sunday, October 7th, 2007 at 11:38 pm and is filed under Code, Linux, Python.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.