Anonymous user
Execute a system command: Difference between revisions
→{{header|Python}}
(→{{header|Raven}}: ++ R) |
|||
Line 439:
import os
code = os.system('ls') # Just execute the command, return a success/fail code
output = os.popen('ls').read() # If you want to get the output data. Depreciated.
or
|