1#! /usr/bin/python -Es 2try: 3 from subprocess import getstatusoutput 4except ImportError: 5 from commands import getstatusoutput 6import sys 7rc = [-1, ''] 8try: 9 rc = getstatusoutput(sys.argv[1]) 10except: 11 pass 12if rc[0] == 0: 13 print(rc[1]) 14