Martin Moss wrote:
> Rather than using crontab, which is pretty much a pull method, why not use a
> perl daemon process - to use push?

I fail to see what crontab has to do with whether the operation is push or pull.
The app is free to choose what method is appropriate and has no bearing on
whether it was started from crontab or the command line or wherever.

> If you use crontab, you could be in danger of having multiple processes
> starting up to ftp the same files. This would happen if your time frequency
> was too small, and you
> a) had a large number of files to process
> b) your system was under a high load and processes are completing slowly.
> c) your destination machine has issues (of the non psychiatrist type) and
> you timeout a lot.

This is true regardless of starting method (crontab, etc).  A semaphore of
some sort is appropriate.

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (Free site for Perl/Lakers)


_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to