Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2005 09:31:47 -0700 (PDT)
From:      Philip Hallstrom <freebsd@philip.pjkh.com>
To:        ESMTP Admin <admin@esmtp.webtent.net>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Running cronjobs
Message-ID:  <20050603093111.P19601@wolf.pjkh.com>
In-Reply-To: <1117740277.8471.32.camel@columbus>
References:  <1117740277.8471.32.camel@columbus>

next in thread | previous in thread | raw e-mail | index | archive | help
Check the value of $PATH when run manually and when run via cron.  That's 
what always bites me... the PATH set by cron is usually pretty minimal...

-philip

On Thu, 2 Jun 2005, ESMTP Admin wrote:

> Always worked well when I dump a script into the /etc/periodic/daily
> folder and set permissions to have a script run automatically each
> night. But this is not working for the Spamassassin rulesdujour script.
> I can run the script manually, no problem, any ideas? Here is the bottom
> of that directory, my own scripts prefixed with 'webtent' and the backup
> and cvsports scripts run perfectly.
>
> -rwxr-xr-x   1 root  wheel    723 Jan 10  2004 500.queuerun
> -rwxr-xr-x   1 root  wheel   7432 Dec 14 09:08 800.webtent-backup
> -rwxr-xr-x   1 root  wheel     71 Mar 22 12:43 810.webtent-cvsports
> -rwxr-xr-x   1 root  wheel  50364 Mar 23 23:41 820.webtent-rulesdujour
> -rwxr-xr-x   1 root  wheel    712 Jan 10  2004 999.local
>
> My daily run log shows the cvsports activity and stops right there:
>
> ...
> Edit ports/x11-wm/xfce4-session/Makefile
> Edit ports/x11-wm/xfce4-session/pkg-plist
> Finished successfully
>
> 666196 bytes transferred in 2.5 seconds (263.32 kBps)
>
> -- End of daily output --
>
> -- 
> Robert
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050603093111.P19601>