Comando unix en el script de Python
from subprocess import call
call('echo "I like potatos"', shell=True)
call('pwd', shell=True)
AMi
from subprocess import call
call('echo "I like potatos"', shell=True)
call('pwd', shell=True)
import shlex
tokens = ["echo", "-n", "Python is awesome"]
shlex.join(tokens)
# "echo -n 'Python is awesome'"