[Techtalk] Cron

Caitlyn M. Martin cmartin at rateintegration.com
Tue Nov 5 13:06:29 EST 2002


On Tue, 2002-11-05 at 10:17, Dan Richter wrote:
> Taking Charlotte's advice, I checked the log and found that the script 
> actually is executing. However, it seems to be running into an error. Oddly 
> enough, the cron command itself pipes stdout and stderr into a log file, 
> but the log file wasn't even created (and when I created it with "touch", 
> it remained empty). And this runs as root, so don't even ask about file 
> permissions.

Actually, it is possible to get a permission denied error as root. Chmod
your favorite executable to 440 as an example and try and execute it as
root and see what happens.  So, yes, check file permissions on the
script to be run.

Also, which backup software are you running?  amanda, for example, wants
to run as its own user and will not run properly as root.

Which distro and version are you running?  RedHat has an interesting way
of doing root cron jobs in recent versions, using the run-parts script
to execute the scripts in /etc/cron.daily and so on.

Also, you said the log files show an error?  What is the error?

I think a number of us can help, but we need more clues.

Thanks,
Cait




More information about the Techtalk mailing list