restart_process_and_send_mail_if_fail
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
restart_process_and_send_mail_if_fail [2012/04/10 18:29] – k2patel | restart_process_and_send_mail_if_fail [2012/04/10 18:30] – k2patel | ||
---|---|---|---|
Line 24: | Line 24: | ||
def message(msg): | def message(msg): | ||
server = smtplib.SMTP(' | server = smtplib.SMTP(' | ||
- | subject = " | + | subject = " |
msg = subject + ' | msg = subject + ' | ||
print msg | print msg | ||
Line 41: | Line 41: | ||
try: | try: | ||
- | subprocess.check_call([' | + | subprocess.check_call([' |
except subprocess.CalledProcessError as prit: | except subprocess.CalledProcessError as prit: | ||
message(str(prit)) | message(str(prit)) | ||
</ | </ |
restart_process_and_send_mail_if_fail.txt · Last modified: 2020/08/10 02:35 by 127.0.0.1