Skip to content

Instantly share code, notes, and snippets.

@giasuddin90
Created October 30, 2019 11:19
Show Gist options
  • Save giasuddin90/19d6e6232eec71adb68eb2af48da828f to your computer and use it in GitHub Desktop.
Save giasuddin90/19d6e6232eec71adb68eb2af48da828f to your computer and use it in GitHub Desktop.
using python sub process run linux command
__author__ = 'giasuddin'
from subprocess import call
call(["ls"])
call(["sudo apt-get update"])
call(["sudo apt-get upgrade"])
call(["dir"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment