blob: 4ed3cb5cf42759f405aad1916a4c0185f817fbf7 [file] [log] [blame]
#!/usr/bin/python3 -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])