Nigel's Notes
Saturday, 18 November 2017
Calling shell commands using subprocess in Python
import subprocess
subprocess.call("command1")
subprocess.call(["command1", "arg1", "arg2"])
https://www.cyberciti.biz/faq/python-execute-unix-linux-command-examples/
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment