[Dirvish] curious problem - dirvish does nothing when run from cron

Paul Slootman paul at debian.org
Thu Dec 28 08:29:24 PST 2006


On Thu 28 Dec 2006, scanner at apricot.com wrote:
> 
> The cron command is:
> 
> 30 4 * * *      /usr/local/sbin/dirvish-expire --config /usr/local/etc/dirvish/master.conf ; /usr/local/sbin/dirvish-runall --config /usr/local/etc/dirvish/master.conf | mail -s "Dirvish output" scanner

I note that you're calling dirvish-expire and dirvish-runall with full
pathnames... Is that because otherwise those commands couldn't be found?
If so, then most probably dirvish-runall can't find the "dirvish"
command either :-)

Either fix the PATH that cron uses when executing its jobs, or put
dirvish somewhere where it can be found.

I prefer to keep the crontab entry nice and simple and just call a shell
script there, which also makes it easier to make sure that things such
as PATH are set up correctly.


Paul Slootman


More information about the Dirvish mailing list