Jeffrey Cao wrote:
Is there an option in CRON, which always check if CRON has started the = process and is already running? Cron should execute the script only if = the the process isn't running already. Any hints on this?You could create a lockfile touch /var/lock/cronfiletest and the test if this lockfile exists, or else exit test -f /var/lock/cronfiletest || exit 0Should it be this? test -f /var/lock/cronfiletest && exit 0 if you want to exit when the lock file exist.
Yes, of course. You're absolutely right.
Sjoerd
signature.asc
Description: OpenPGP digital signature