Using Linux Shell Command within Python

If you just want to do some simple task, this would do:

from subprocess import call
cmd = "mkdir -p tmp/some/dir"
call(cmd, shell=True)
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *