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

Bernd Haug haug at berndhaug.net
Tue Jan 2 04:06:27 PST 2007


Dave Howorth wrote:
> does NOT use absolute paths in the code. dirvish-runall reads
> configuration, either from a file or from the command line

And the default location of the file happens to be found as
$CONFDIR = "/etc/dirvish";
which strikes me as a absolute path, in a program no less.

I certainly concur with you that minimizing such occurences is a
good thing, but you need some starting point; a reasonable default.
I don't think giving absolute paths inside a program can be
completely avoided unless you want the user to have to specify a
configuration path on the command line every time.

But I completely agree insofar as that the cases where a complete
hard-coding of the call chain makes sense are few and far between,
e.g. compilers that have very specific hard-coded paths to their
preprocessors, code-generators, linkers etc, depending on version of
the compiler, compile platform and target platform etc.

Yours, Bernd


More information about the Dirvish mailing list