免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 13544 | 回复: 6
打印 上一主题 下一主题

[SCO UNIX] crontab怎么不生效? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-01 16:39 |只看该作者 |倒序浏览
我用crontab -e 写了一个后台任务(没有重启机器),但到了执行时间却没有生效,请哪位大虾帮忙想想是何原因?

论坛徽章:
0
2 [报告]
发表于 2003-06-01 17:00 |只看该作者

crontab怎么不生效?

你的脚本可以直接执行吗?
在你的crontab中对应行末尾加上 >;/tmp/mylog 2>;&1
然后重新设置,让你的脚本在5分钟后执行,看看/tmp/mylog内容,并依次信息进行修改。

论坛徽章:
0
3 [报告]
发表于 2003-06-01 17:15 |只看该作者

crontab怎么不生效?

mylog显示:    logname: could not find entry in /etc/utmp
不知哪里错?

论坛徽章:
0
4 [报告]
发表于 2003-06-01 21:38 |只看该作者

crontab怎么不生效?

能把你写的脚本贴出来吗?

论坛徽章:
0
5 [报告]
发表于 2003-06-09 22:57 |只看该作者

crontab怎么不生效?

crontab -e   Only insert line into crontab file, you must execute command "crontab crontab_file". If you login with "root", command line is "crontab root".
    All crontab files are in directory "/usr/spool/cron/crontabs".
And the detail please "man crontab".

论坛徽章:
0
6 [报告]
发表于 2003-06-10 16:31 |只看该作者

crontab怎么不生效?

重起!

论坛徽章:
0
7 [报告]
发表于 2003-06-10 17:13 |只看该作者

crontab怎么不生效?

Try 1. reboot
      2.  cd /usr/spool/cron/crontabs
           ./ crontab root
anyway, after edit the crontab file, you have to run crontab root
again.

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP