Trey Blancher wrote: > I ran dirvish-daily using at (which should be functionally equivalent to > running it during cron), with the changes I made to dirvish-runall, and > it seemed to work. I've attached the patch I generated; it applies to > dirvish 1.2.1. > > I'll have to see tomorrow whether the dirvish-daily cronjob runs > successfully. > > Trey > > Trey Blancher wrote: >> I get the following errors when I run my dirvish-daily script from cron >> (see previous post for source to script): >> >> 00:00:09 dirvish --vault home --image-time "22:30" >> sh: dirvish: command not found >> 00:00:09 dirvish --vault music --image-time "22:30" >> sh: dirvish: command not found >> 00:00:09 done >> /usr/sbin/dirvish-runall run failure! >> >> (The last line is the failure message from my script). >> >> Do I need to explicitly supply the PATH to dirvish in dirvish-runall? >> I'm going to do that, and see how it goes.
The normal thing to do is to set your path appropriately when you invoke dirvish-runall in the crontab. /usr/sbin is normally already in root's path. If not, it can be added for the crontab as a whole or just as part of the environment for the dirvish-runall command. There's no need to patch dirvish. Cheers, Dave _______________________________________________ Dirvish mailing list [email protected] http://www.dirvish.org/mailman/listinfo/dirvish
