search

Home  >  Q&A  >  body text

linux - crontab无法写入文件

怪我咯怪我咯2813 days ago878

reply all(3)I'll reply

  • 怪我咯

    怪我咯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

    reply
    0
  • 阿神

    阿神2017-04-17 13:15:18

    1. Is sudu written incorrectly?
    2. crontab -l See how to put it in crontab

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:15:18

    shelluser@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.

    reply
    0
  • Cancelreply