走同样的路,发现不同的人生
Can you post the crontab configuration?
Write /usr/local/php/bin/php /home/stock/index_cli.php directly in crontab and try it
1. Is sudu written incorrectly? 2. crontab -l See how to put it in crontab
shelluser@host#: sudo crontab -e
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.
sudo crontab -e
root
sudo
Can you post the crontab configuration?
Write /usr/local/php/bin/php /home/stock/index_cli.php directly in crontab and try it
1. Is sudu written incorrectly?
2. crontab -l See how to put it in crontab
sudo crontab -e
is already edited asroot
, so there is no need forsudo
in it.