You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#! /usr/bin/python -Es |
|
try: |
|
from subprocess import getstatusoutput |
|
except ImportError: |
|
from commands import getstatusoutput |
|
import sys |
|
rc = [-1, ''] |
|
try: |
|
rc = getstatusoutput(sys.argv[1]) |
|
except: |
|
pass |
|
if rc[0] == 0: |
|
print(rc[1])
|
|
|