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/
Posted by nglbrkr at 15:26 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: linux, python, shell
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Labels

chem cups grep json_to_csv linux nexus python Raspberry Pi Raspbian rate recordmydesktop rsync SD card server shell strava xfce

Blog Archive

  • April (1)
  • December (1)
  • January (1)
  • December (1)
  • March (1)
  • December (1)
  • March (1)
  • November (1)
  • April (1)
  • March (1)
  • August (1)
  • June (1)
  • March (1)
  • November (1)
  • March (1)
  • January (1)
  • September (1)
  • August (2)
  • July (1)

My Other Blogs

  • Nigel S. Barker
    Vote-counting Programs
  • Hiroshima Programming Workshop
    Scratch for Primary Children

About Me

nglbrkr
View my complete profile
Simple theme. Powered by Blogger.