RE: Interested in thoughts on how to hand off to mirror of script on another server
Don't use email, use sockets. Have all the scripts connect to each other and send status updatessay every 2 minutes. If a connection closes or if a script detects that shutdown is coming, it updates a message. Any connection will immediately detect if the TCP connection on the other side goes down...so you can use that as a fail safe. Cheers, John >-Original Message- >From: Gary Nielson [mailto:[EMAIL PROTECTED] >Sent: Wednesday, August 06, 2003 2:25 AM >To: [EMAIL PROTECTED] >Subject: Interested in thoughts on how to hand off to mirror of script >on another server > > >I have a script that I would like to run no matter what during >the day. Of >course, if there's a power outage or storm, equipment or >network problems, >that script isn't *always* going to run. Since my computer is >on a UPS, I am >thinking that somehow I would be able to find out when the server is >shutting down, send an email to another server that would >activate the same >script there, and have that script do the job until the first >server is back >up. Of course, depending on email won't work if it's the network that's >down. I presume people do this all the time -- do they ping? >-- but I've >just never done it and I'd be interested in how you'd go about it, what >cautions to watch out for, any examples or approaches I could >at to do this >in perl on either a Windows or Linux box. Any help appreciated. > > >___ >Perl-Win32-Users mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Interested in thoughts on how to hand off to mirror of script on another server
You might take advantage of any of the Perl modules that provide access to the Scheduler and use that to schedule the task on the other machine. The other machine could then watch the primary box and when it comes back up self-terminate. -- Benjamin D. Wiechel Xerox Global Services, Inc. [EMAIL PROTECTED] -Original Message- From: Gary Nielson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 2:25 PM To: [EMAIL PROTECTED] Subject: Interested in thoughts on how to hand off to mirror of script on another server I have a script that I would like to run no matter what during the day. Of course, if there's a power outage or storm, equipment or network problems, that script isn't *always* going to run. Since my computer is on a UPS, I am thinking that somehow I would be able to find out when the server is shutting down, send an email to another server that would activate the same script there, and have that script do the job until the first server is back up. Of course, depending on email won't work if it's the network that's down. I presume people do this all the time -- do they ping? -- but I've just never done it and I'd be interested in how you'd go about it, what cautions to watch out for, any examples or approaches I could at to do this in perl on either a Windows or Linux box. Any help appreciated. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Interested in thoughts on how to hand off to mirror of script on another server
I have a script that I would like to run no matter what during the day. Of course, if there's a power outage or storm, equipment or network problems, that script isn't *always* going to run. Since my computer is on a UPS, I am thinking that somehow I would be able to find out when the server is shutting down, send an email to another server that would activate the same script there, and have that script do the job until the first server is back up. Of course, depending on email won't work if it's the network that's down. I presume people do this all the time -- do they ping? -- but I've just never done it and I'd be interested in how you'd go about it, what cautions to watch out for, any examples or approaches I could at to do this in perl on either a Windows or Linux box. Any help appreciated. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs