Running cronjobs

Philip Hallstrom freebsd at philip.pjkh.com
Fri Jun 3 16:31:53 GMT 2005


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 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"
>


More information about the freebsd-questions mailing list