LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 592|回复: 1

gentoo下crontab的问题

[复制链接]
发表于 2008-12-24 15:24:03 | 显示全部楼层 |阅读模式
在/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编辑界面~~晕了~~
发表于 2008-12-24 17:06:23 | 显示全部楼层
要装一个crontab还要加到rc-update中。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表