Search
 
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
Name
9+4 =