Quoting Yonah Russ, from the post of Thu, 27 Apr: > I think everything suggested so far is way to complicated. > Have all your servers mount a directory(lets call it "cronserver") and store > all your scheduled scripts there.
ok, talk about complicated. NFS is the LAST answer I want to give... here's what I suggest. each of the "slaves" has a cron job that runs every 5 minutes. it's planted in /etc/cron.d/central-cron-poll or something. what this does is extremely simple - use wget to poll the server for instructions (which could be NOP or a 100 line script) and run them. no other scripts need to be installed locally. the instructions it gets will be a backup script to run or any other task. the task may include planting a semaphore to mark success of failure, or it may be a short script that checks for a semaphore and invokes wget accordingly to report it back to the central server. in other words, the slave asks the master every N minutes what to do via HTTP GET. Success and failure are reported back with an HTTP GET. the whole thing is managed by a CGI, PHP, or a standalone Python httpd object. no files to update on the slaves, you update them on the server and within minutes the right slave(s) will run them on their next scheduled poll. The smart bit is the server. it holds the list of task scripts to serve, with dependencies and the list of the slaves that need to run each, serving them to the slaves and waits for semaphore checks as feedback for dependency. It sounds too elegant and simple to implement to NOT have been done so far. I'd dig around freshmeat some more. > Now everything can be stored, edited, etc. from one central location. > If you want more complicated scheduling you could add it any number of ways > depending on the resolution you're looking for. yup, basicly the same idea, but no NFS please :-) wget and bash are just fine. -- The last Jedi Ira Abramov http://ira.abramov.org/email/ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]