[NTLUG:Discuss] Setting up a watch folder

./aal al_h at technologist.com
Sun Jan 18 11:19:33 CST 2009


On Thu, Jan 15, 2009 at 10:18 AM, Ben Weatherall <bweatherall at pdxinc.com> wrote:
> Regardless of which scripting language you use, if you are going to
> trigger at 1-minute intervals you are probably going to have to use some
> form of semaphore locking (probably file based) so that a newer
> instantiation of the script will not try to send the same file already
> being processed by an older instantiation.
>
> -Ben Weatherall

ah yes...

perhaps have the script move a file to a cache location before it
starts proccessing
no file in cache will trigger a print job, only ones in the que folder
will start a print job(after they are moved out of que)




-- 
I'm a PC(x86 AND ppc)
AND I RUN LINUX!!!

Ernest Rutherford  - "All science is either physics or stamp collecting."



More information about the Discuss mailing list