[Dirvish] curious problem - dirvish does nothing when run from
cron
Eric 'Scanner' Luce
scanner at apricot.com
Thu Dec 28 09:02:27 PST 2006
>>>>> "Paul" == Paul Slootman <paul at debian.org>
>>>>> wrote the following on Thu, 28 Dec 2006 17:29:24 +0100
Paul> I note that you're calling dirvish-expire and dirvish-runall
Paul> with full pathnames... Is that because otherwise those
Paul> commands couldn't be found? If so, then most probably
Paul> dirvish-runall can't find the "dirvish" command either :-)
Hm. That was stupid of me. (although I would have thought that 1)
dirvish was built with its own absolute path names, and 2) it would
error out if it could not find its own programs.)
I tend to always specify programs run as root with their full pathname
whether or not they could be found in the PATH by default. I feel it
is a good safety practice. Had not even occured to me (obviously) that
dirvish-runall would not know where the rest of dirvish is.
Paul> Either fix the PATH that cron uses when executing its jobs,
Paul> or put dirvish somewhere where it can be found.
Paul> I prefer to keep the crontab entry nice and simple and just
Paul> call a shell script there, which also makes it easier to
Paul> make sure that things such as PATH are set up correctly.
True. Thanks! Let me see if this fixes it.
--
--Scanner (scanner at apricot.com)
More information about the Dirvish
mailing list