Another approach... If possible, have the cron-job on a server on the internet which stores the data it collects on the server. That'll ensure it's only collected once. Then have the cron-jobs on your computers access another script on the server that returns them the data (if there's any stored) and then deletes the data. Which will prevent the data being uploaded more than once.
-- Carl Read. On Wednesday, 28-March-2007 at 14:26:43 John Blake wrote, >SOA? > Have each computers cron be say 5 minutes different than the next one. > Have a service on each one. Have your rebol script ask the others if >anyone has run the cron yet.=20 > 1. if another one has, then don't run it. > 2 if another one has not, then run it. > 3 if none respond, then run it. > > >John > > >-----Original Message----- >From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf >Of Peter Carlsson >Sent: Wednesday, March 28, 2007 1:22 PM >To: [EMAIL PROTECTED] >Subject: [REBOL] Distributed scripts > > >Hello! > >I have several scripts that I periodically need to run >that collects different information from the Internet >and I have put them as cron jobs. > >I have also put the same scipts/cron jobs on several >computers to be sure at least one of them is powered >on and can run the scripts. > >I have yet to come up with a solution that: >- At least always one computer runs the scripts >- If more than one computer runs the scripts I only > want one report for each script. >- Next time all computers should run a script it > should start with the same pre-conditions. >- Maybe some other conditions I forgot. > >Does anyone have a good solution for this problem? > >Best regards, >Peter Carlsson -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
