If you're working on an operating system that has some kind of file monitoring or file notification system, you can avoid the (admittedly simple) sleep loop by registering interest in file creation or deletion. SGI::FAM is an old module that gives access to SGI's FAM library. (See The Watchful Eye of FAM for more.)
In reply to Re: Using flag files to monitor cluster jobs
by chromatic
in thread Using flag files to monitor cluster jobs
by bwelch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |