|
|
在/etc/crontab下编辑了以下命令
1 2 * * * root /msn/sync/new_sync
1 3 * * * root /usr/local/user/LanWebMonitor
LanWebMonitor这个脚本是个统计WEB流量的脚本,单独执行没有任何问题,
但是放在crontab内就是不执行,每次都需要重新手动执行该脚本才能将数据同步并上传
输入crontab -u root -e
提示no crontab for root - using an empty one
/bin/sh: -c: line 0: syntax error near unexpected token `pid'
/bin/sh: -c: line 0: `httpd (pid 2527) already running'
crontab: "httpd (pid 2527) already running
Starting MySQL SUCCESS!
/bin/nano" exited with status 2
并且不跳入VI编辑界面~~晕了~~ |
|