Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python run linux command and get output

#!/usr/bin/python
import subprocess
subprocess.call(["ping", "-c 2", "www.cyberciti.biz"])
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #python #run #linux #command #output
ADD COMMENT
Topic
Name
1+5 =