Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import sys execute cmd

Use os.popen with read to get the output of the command 

import os
print os.popen("echo Hello World").read()
 
PREVIOUS NEXT
Tagged: #import #sys #execute #cmd
ADD COMMENT
Topic
Name
8+3 =