master-algorithms-py/src/basic_examples/example_subprocess.py
2015-01-06 02:30:59 -05:00

9 lines
123 B
Python

#!/usr/bin/env python
__author__ = "bt3"
import subprocess,os
os.system('ls')
subprocess.call(['ls', '-1'], shell=True)