05 2 * * * /www/log/stat/access.sh >/dev/null 2>&1以前就设置了这样的命令都能自动运行

解决方案 »

  1.   

    是不是shell文件不能随便存到哪个位置?
      

  2.   

    或者说你就运行/www/web/php/logphp/logshell.sh看看有没有成功
      

  3.   

    不行,php后显示:
    cd /www/web/php/logphp/
    /usr/local/bin/php -q log.php
    但没有执行log.php文件
      

  4.   

    设置权限为可执行
    chmod +x /www/web/php/logphp/logshell.sh测试:在终端下输入/www/web/php/logphp/logshell.sh,然后回车
      

  5.   

    按surfchen(冲浪) 的方法做,提示如下错误,这是什么问题呢
    : bad interpreter: No such file or directoryogshell.sh: /bin/sh