Answer the question
In order to leave comments, you need to log in
How in Centos, when composing a Cron task, to prevent the script from being called before the previous call completes?
Now it is called like this (configured in VESTA)
php /home/admin/web/default.domain/public_html/xxx/hotels.php
Answer the question
In order to leave comments, you need to log in
flock -n /tmp/blah.lock -c 'php /home/admin/web/default.domain/public_html/xxx/hotels.php'
if [ ! -f /tmp/lock ]; then touch /tmp/lock; php hotels.php; rm /tmp/lock; else exit 0; fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question