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