Script execution

This commit is contained in:
boccioli_m
2015-06-01 14:03:45 +02:00
parent c45d18af23
commit 83aec4d248

View File

@@ -1,9 +1,9 @@
#Script imported from: Check Linearity LS.xml
#Pre-actions
p = subproccess.Popen('/bin/sleep 2' +, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.communicate()
ret = p.returncode
#p = subproccess.Popen('/bin/sleep 2' +, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
#p.communicate()
#ret = p.returncode
if ret <> true:
raise Exception('Script returned with an exit value not equal to 0')
caput('PO2TC-NCS-LS:MOTOR.VELO', '50')