All,

Wondering what the best approach would be to the following.

I have a script which copies files and sends mail notification
appropriately.

I want the script to check for new source files every 15 mins, however when
there are new files, the operation will take long enough to the point where
a second instance of the script will start while the first is still
executing - obviously I don't want two copies running simultaneously.
My first thought would be to create a dummy file upon start and if this
exists, a second instance wouldn't begin, then deleting the file when the
operation is complete.

Is there a better way of doing this?

Many thanks,

Mark

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to