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