How to have only one instance of program run scheduled task?
My software runs on multiple machines against a single database.

I would like a task to be performed within the software on a daily basis - eg. at midday.

How can I ensure this task is:

 - performed only once per day,
 - performed no matter which machine/user happens to be running the software that day, and
 - not performed simultaneously with any other instances of the software?


How to have only one instance of program run scheduled task?
===

My software runs on multiple machines against a single database.

I would like a task to be performed within the software on a daily basis - eg. at midday.

How can I ensure this task is:

 - performed only once per day,
 - performed no matter which machine/user happens to be running the software that day, and
 - not performed simultaneously with any other instances of the software?

