Strange cron behavior

Damian Wiest dwiest at vailsys.com
Thu Oct 5 09:22:04 PDT 2006


On Wed, Oct 04, 2006 at 06:23:39AM -0400, stan wrote:
> On Tue, Oct 03, 2006 at 11:22:29PM -0500, Philip Hallstrom wrote:
> > >I'm having a hard time getting cron to run a task. I've run crontab -e
> > >(as root), and added the following line:
> > >
> > >12 * * * * /usr/local/bin/mirror_ubuntu
> > >
> > >This script runs from teh command line. Now I've seen plenty of
> > >strange beahviour because of the limited environment cron tasks
> > >get, but a basic "echo "test" >> /tmp/stan isn't even creating
> > >the file.
> > >
> > >Sugestions?
> > 
> > Is the cron daemon running?  What is the output in /var/log/cron?
> 
> 
> Forgot to mention that. Yhe script does get listed in /var/log/cron
> as having been invoked.
> -- 
> Unix is very simple, but it takes a genius to understand the simplicity.
> (Dennis Ritchie)
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

Can you run the script with the -x option?

eg.

#!/bin/sh -x

-Damian


More information about the freebsd-questions mailing list