Created
October 30, 2019 11:19
-
-
Save giasuddin90/19d6e6232eec71adb68eb2af48da828f to your computer and use it in GitHub Desktop.
using python sub process run linux command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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