Re: cron not running job

2004-12-20 Thread Tom Vilot
> I'm having problems getting my freshly update FreeBSD 5.3 system to run 
> my cron jobs.  Logged in as root, I enter the job in root's crontab with 
> the following command
> 
> crontab -e
> 
> I enter the job in the following format:
> 
> 05  10  *   *   *   /root/cronjobs/cvs-sup.sh
> 
> The script has the following permissions:
> 
> -rwxr-xr-x  1 root  wheel  255 Dec 13 10:39 cvs-sup.sh
> 
> I can run the script as root with no errors.  I look in the 
> /var/log/cron log and I don't see any attempt by cron to run the job.  
> There is no error either.There are entries for the edit of the
> crontab:

This drove me batty for a while. You should see some emails to root
regarding this. Typically, it's a path issue.

In your cvs-sup.sh use the full path to the binaries you are trying to
execute. Like this:

/usr/local/bin/cvsup /root/ports-supfile > /tmp/ports-log 2>&1
/usr/local/sbin/portsdb -Uu

Also, you can use /etc/periodic/daily rather than using cron directly.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cron not running job

2004-12-14 Thread Kirk Strauser
On Tuesday 14 December 2004 12:20, Andy Clements wrote:

> Did I forget some small tid-bit that needs to change for this to work?

Cron requires a newline at the end of the file.  I'll bet that your crontab 
ends with "cvs-sup.sh" and not "cvs-sup.sh".
-- 
Kirk Strauser


pgpBCUQtL0uV4.pgp
Description: PGP signature


Re: cron not running job

2004-12-14 Thread Andy Clements
Andy Clements wrote:
Hello All,
I'm having problems getting my freshly update FreeBSD 5.3 system to 
run my cron jobs.  Logged in as root, I enter the job in root's 
crontab with the following command

crontab -e
I enter the job in the following format:
05  10  *   *   *   /root/cronjobs/cvs-sup.sh
The script has the following permissions:
-rwxr-xr-x  1 root  wheel  255 Dec 13 10:39 cvs-sup.sh
I can run the script as root with no errors.  I look in the 
/var/log/cron log and I don't see any attempt by cron to run the job.  
There is no error either.There are entries for the edit of the 
crontab:

Dec 14 10:03:36 bukowski crontab[632]: (root) BEGIN EDIT (root)
Dec 14 10:03:45 bukowski crontab[632]: (root) REPLACE (root)
Dec 14 10:03:45 bukowski crontab[632]: (root) END EDIT (root)
Dec 14 11:04:00 bukowski /usr/sbin/cron[405]: (root) RELOAD (tabs/root)
But nothing else. So, I'm at a lost.  I have the understanding that 
cron should immediately recognize any changes to the file, but it 
doesn't seem to be working.  I even re-booted in desperation.  Did I 
forget some small tid-bit that needs to change for this to work?  I've 
checked the Handbook, the FAQ, Google and the mailing list, but I 
haven't seen any solutions.

Please CC me with your answer as I am not on the mailing list.
Thanks in advance,
Andy Clements
An update.  It appears that newline or carriage return must be placed at 
the end of the crontab line for the command to run by cron.  thanks to 
anyone who answered anyway!

--Andy
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


cron not running job

2004-12-14 Thread Andy Clements
Hello All,
I'm having problems getting my freshly update FreeBSD 5.3 system to run 
my cron jobs.  Logged in as root, I enter the job in root's crontab with 
the following command

crontab -e
I enter the job in the following format:
05  10  *   *   *   /root/cronjobs/cvs-sup.sh
The script has the following permissions:
-rwxr-xr-x  1 root  wheel  255 Dec 13 10:39 cvs-sup.sh
I can run the script as root with no errors.  I look in the 
/var/log/cron log and I don't see any attempt by cron to run the job.  
There is no error either.There are entries for the edit of the crontab:

Dec 14 10:03:36 bukowski crontab[632]: (root) BEGIN EDIT (root)
Dec 14 10:03:45 bukowski crontab[632]: (root) REPLACE (root)
Dec 14 10:03:45 bukowski crontab[632]: (root) END EDIT (root)
Dec 14 11:04:00 bukowski /usr/sbin/cron[405]: (root) RELOAD (tabs/root)
But nothing else. So, I'm at a lost.  I have the understanding that cron 
should immediately recognize any changes to the file, but it doesn't 
seem to be working.  I even re-booted in desperation.  Did I forget some 
small tid-bit that needs to change for this to work?  I've checked the 
Handbook, the FAQ, Google and the mailing list, but I haven't seen any 
solutions.

Please CC me with your answer as I am not on the mailing list.
Thanks in advance,
Andy Clements
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"