我有一个触发另一个脚本的脚本:
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
我该怎么做?