2011-08-15 17:56:02 +00:00
|
|
|
#! /usr/bin/python -Es
|
2016-08-02 13:40:28 +00:00
|
|
|
try:
|
|
|
|
from subprocess import getstatusoutput
|
|
|
|
except ImportError:
|
|
|
|
from commands import getstatusoutput
|
2015-07-24 08:07:13 +00:00
|
|
|
import sys
|
|
|
|
rc = [-1, '']
|
2011-08-15 17:56:02 +00:00
|
|
|
try:
|
2016-08-02 13:40:28 +00:00
|
|
|
rc = getstatusoutput(sys.argv[1])
|
2011-08-15 17:56:02 +00:00
|
|
|
except:
|
|
|
|
pass
|
|
|
|
if rc[0] == 0:
|
2015-07-21 00:38:20 +00:00
|
|
|
print(rc[1])
|