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

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Fri Jan 12 06:14:52 PST 2007

Michael Nelson wrote:
> On Fri, Jan 12, 2007 at 01:26:04PM +0000, Dave Howorth wrote:
>> You can change the path in the crontab itself. man 5 crontab
> Oh yes, I know that and have done it now.

Good. I'm glad Suse isn't broken after all.

>> It does produce an error: "dirvish: command not found". If you're not
>> seeing it, you need to check how you have cron configured to report errors.
> It did not.

I'm sorry but your sentence above is *NOT* implied by your sentences below.

>  It emailed me the output of the cron job which merely showed
> dirvish-runall running two vaults, both at the same hh:mm:ss.  No error
> message, just that.

The above is [probably] a statement of fact. Your first sentence is an
assumption based on those facts, and it happens to be wrong. You chose
also to assume that my advice was wrong. Here's output from a test on my

Subject: Cron <root at suse1> /usr/local/sbin/dirvish-runall
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20070112140202.3133F6A927 at suse1.lmb.internal>
Date: Fri, 12 Jan 2007 14:02:02 +0000 (GMT)
X-UIDL: E^"#!,#b"!QaH!!nlO"!

14:02:01 dirvish --vault suse1-home --image-time "22:00"
sh: dirvish: command not found

You can see the error message right there. dirvish does produce an error
message. You just need to figure out why you're not seeing it on your
system. Don't leap to assumptions and it probably won't be too hard.

Cheers, Dave

More information about the Dirvish mailing list