DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+7 =
Submit