-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The Tuesday 2007-05-08 at 15:13 -0500, Nick Jones wrote:

> I've been having problems with cron running cron.daily jobs.  I can't
> for the life of me figure it out and it is embarrassing and
> frustrating.

You simply need to place an executable script in the cron.daily dir. These 
are run by the "/usr/lib/cron/run-crons" script: you can examine it to see 
how it works.

For example, if it is a laptop on batery, it will not run.

You could edit the file so that it logs a message to syslog when it runs 
or runs something; loo for this line:

       nice -n ${CRON_SCRIPT_NICE_VALUE} $SCRIPT >$TEMP_MSG 2>&1

You could add below a call to "logger" to log a messge of your choice for 
each script.

Or you could define the variable "SYSLOG_ON_NO_ERROR" to yes 
(/etc/sysconfig/cron).


> 
> So I run service cron restart, it checks /var/spool/tabs/ and
> /etc/crontab.  The crontab is the default and should run cron.daily
> scripts.  I've read that I need a file cron.daily under lastrun (which
> is empty now) so it's timestamp can be used.  I've tried manually
> creating this and it doesn't work.

That file /dissables/ the script for 24 hours.

> According to timestamps it is not reading any files in the system
> every 15 minutes and it should at least look in lastrun I believe.

It doesn't read, it checks timestamps of the directory. If this stamp 
changes, then it reads those crontab files.

- -- 
Cheers,
       Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGQaFTtTMYHG2NR9URAoIVAKCP2gdd0fTdqbJ/OeTf5x8Xqo2pUQCfU0CF
Xv3+PMpqFItw+iiK4Gae1zI=
=P9pX
-----END PGP SIGNATURE-----

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to