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