Back to home page

EIC code displayed by LXR

 
 

    


Warning, /iDDS/main/tools/rubin/bash-c-enc is written in an unsupported language. File is not indexed.

0001 #!/bin/env python
0002 
0003 import sys
0004 import subprocess
0005 import base64
0006 import datetime
0007 
0008 exec_str = base64.b64decode(sys.argv[1])
0009 
0010 print("INFO : start {}".format(datetime.datetime.utcnow()))
0011 print("INFO : exec string: {}".format(exec_str))
0012 
0013 p = subprocess.Popen(exec_str.decode(), stdout=sys.stdout, stderr=sys.stderr,
0014                      shell=True, universal_newlines=True)
0015 retcode = p.wait()
0016 print("INFO : end {} with retcode={}".format(datetime.datetime.utcnow(), retcode))
0017 exit(retcode)
0018