All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Metzger <news@thinkdeeper.com>
To: linux-admin@vger.kernel.org
Subject: Re: cron script won't run
Date: Wed, 27 Sep 2006 08:29:03 -0500	[thread overview]
Message-ID: <efdub1$410$1@sea.gmane.org> (raw)
In-Reply-To: <efao6l$b0m$1@sea.gmane.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
> 


  reply	other threads:[~2006-09-27 13:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26  7:46 cron script won't run Matthew Metzger
2006-09-26  8:25 ` Matthew Metzger
2006-09-27 13:29   ` Matthew Metzger [this message]
2006-09-26  8:30 ` Adam T. Bowen
2006-09-26  9:05   ` Luca Ferrari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='efdub1$410$1@sea.gmane.org' \
    --to=news@thinkdeeper.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.