From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Metzger Subject: Re: cron script won't run Date: Wed, 27 Sep 2006 08:29:03 -0500 Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin@vger.kernel.org thanks for the responses to my question. I learned from them. My problem was that I was directly editing the /etc/crontab file instead of using the crontab command correctly. Once I figured out how to create a cron job in a separate text file and then add it to the crontab with "crontab config_text.cron", it worked fine. thanks for your help. -Matthew Matthew Metzger wrote: > A follow up: > > I fixed the PAM errors by running: > apt-get install pam_krb5 > > my crontab script, however, still will not run. > > -Matthew > > > > Matthew Metzger wrote: >> Hello, >> >> I have a script that works great when I run it from the command line, >> but doesn't work at all when added to crontab. The strange part is >> that /var/log/cron shows the job running: >> >> Sep 26 03:39:01 cono crond[25241]: (root) CMD >> (/etc/cron.3min/mail-restart.sh) >> >> >> However, the log shows some other errors that may have something to do >> with it. >> >> PAM adding faulty module: /lib/security/pam_krb5.so >> (root) CMD (/etc/cron.3min/mail-restart.sh) >> PAM unable to dlopen(/lib/security/pam_krb5.so) >> PAM [dlerror: /lib/security/pam_krb5.so: cannot open shared object >> file: No such file or directory] >> >> However, other cron jobs run just fine. So I'm not sure what is the >> problem. Any help in figuring this out would be greatly appreciated. >> >> Thanks. >> >> -Matthew >> >> - >> To unsubscribe from this list: send the line "unsubscribe linux-admin" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >