LinuxSir.cn,穿越时空的Linuxsir!

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

[求助] 关于crontab文件命令不能执行的问题?

[复制链接]
发表于 2005-4-22 18:01:25 | 显示全部楼层 |阅读模式
47  17 * * * /root/bin/a.sh

这个是我的crontab文件的内容 a.sh 只有一句 clear

到时间后a.sh 不自己执行而是通过crond 发了个邮件给我a.sh在邮件里边打开执行了.

郁闷! 谢谢了.
发表于 2005-4-22 19:06:40 | 显示全部楼层
The clear command is used to clear screen from your working console or terminal, more precisely, your standard output.

I suspect the std-out is not defined so that even when a.sh is executed, you are not noticeable but only alert by crond.

Try to replace the clear command with others and see if it works.
回复 支持 反对

使用道具 举报

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

本版积分规则

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