Skip to main content

Thread: Python script to generate a list file of successes and email


i made program number of jobs/tests on 1 server. if there failures/errors writes file, emails off. afterwards finishes , closes. program set via cron job on 16 different servers via sys.argv[1] being name of server. each of jobs separated via time frame in cron. trying do, if program finishes on server1 no errors, add type of list/file @ completion of day's cron's email number of successful servers , name.

assuming @ end of each run can like

message.write(sys.argv[1], " completed successfully\n")
message.close
if len(message) == 16:
sendmail blah blah
### open file read assign variable etc

idea's appreciated!!



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Python script to generate a list file of successes and email


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support