[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron.daily 中用户定制脚本无法运行



On Sun, Jul 16, 2006 at 02:06:29PM +0800, epaulin wrote:
> hi,
> 
> Debian Sarge 
> 的服务器,问题比较奇怪,我有写个备份脚本放在 
> /etc/cron.daily,但并非预想的每天执行,检查了
> /etc/crontab ,无异常。
> 并且 logratate syslog 等都正常,手工执行 run-parts --report
> /etc/cron.daily,syslog 重启了,但备份脚本仍未执行!
> #su nobody
> #/etc/cron.daily/databackup
> 脚本是可以正常运行的;
> 
> 无奈 # crontab -e 写到 root 的 crontab 
> 中去了,这样也是正常的。

是不是脚本的第一行没有写#!/bin/..sh ?

-------------------------

-- 
Best of all is never to have been born.  Second best is to die soon.



Reply to: