我想在其他cron之后设置cron运行。例如:Cron A在01:00 PM完成,Cron B将在01:01 PM开始。问题是我不知道cron A何时完成。Cron在其他cron之后运行
我检查了crontab语法。它没有为此提供任何参数。
我的实际情况是:
# This cron must run first.
? ? * * * /usr/local/bin/php -f /path/select_and_print_to_log_file.php
# two these crons runs at the same time.
0 13 * * * /usr/local/bin/php -f /path/update_user.php
0 13 * * * /usr/local/bin/php -f /path/update_image.php
# This cron runs right after two above cron completes.
? ? * * * /usr/local/bin/php -f /path/select_and_print_to_log_file.php