Reputation: 110163
I have a script that triggers another script:
exit_status = subprocess.call([RUN_SCRIPT)]
if exit_status: # if successful output
# do something
else: # if script is not successful
# send email to admins
# RUN_SCRIPT
if return_value < error_threshold:
# return exit status = 1
if return_value > error_threshold:
# return exit status = 0
How would I do this?
Upvotes: 0
Views: 150