[ale] Re: [ALE] file system trigger
Greg Sabino Mullane
greg at turnstep.com
Fri Feb 22 12:29:52 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> What they want is for a job to sleep and then wakeup every so often.
> Is there to signal a job to run whenever a file appears in a directory.
Too bad they have such strange requirements (no cron). A cronjob would be
the best thing: what happens when the process that is watching the
directory gets killed? what happens when you reboot the box? There is
nothing "builtin", you will have to write a script to monitor the
directory yourself and do the sleeping. The good news is that such a
script is fairly simple. The bad news is that without a cronjob to start
the script up again as needed, you have no assurance that it will keep
running if it crashes, or is killed, or the box is rebooted, etc.
Worse case scenario, you could make another script to monitor the
first one, on the theory that it may survive what kills the first; or
you could just sneak your watchdog script into an existing cronjob somehow.
Heck, you could even have the script issue periodic "at" commands... :)
Greg Sabino Mullane greg at turnstep.com
PGP Key: 0x14964AC8 200202221228
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html
iD8DBQE8dn/QvJuQZxSWSsgRAve+AJ9bnMBe3ayhS9FnkfrWIKu71uRA6QCgvxUO
DM+BTmc3xtQrKSX46IPAIbs=
=M9qm
-----END PGP SIGNATURE-----
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list