怪我咯2017-04-17 13:15:18
Can you post the crontab configuration?
Write /usr/local/php/bin/php /home/stock/index_cli.php directly in crontab and try it
阿神2017-04-17 13:15:18
1. Is sudu written incorrectly?
2. crontab -l See how to put it in crontab
伊谢尔伦2017-04-17 13:15:18
shell
user@host#: sudo crontab -e
0 * * * * /usr/local/php/bin/php -f /data/dd.php > /data/dd.log 2>&1 &
sudo crontab -e
is already edited as root
, so there is no need for sudo
in it.