DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python run a system command
import os cmd = "git --version" returned_value = os.system(cmd) # returns the exit code in unix
Source by www.journaldev.com #
PREVIOUS
NEXT
Tagged:
#python
#run
#system
#command
ADD COMMENT
Topic
COMMENT
Name
3+8 =
Submit