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. > > Trey _______________________________________________ Dirvish mailing list [email protected] http://www.dirvish.org/mailman/listinfo/dirvish
--- /usr/sbin/dirvish-runall.bak 2006-09-14 05:48:00.000000000 -0500
+++ /usr/sbin/dirvish-runall 2006-09-14 05:49:46.000000000 -0500
@@ -1,7 +1,7 @@
#!/usr/bin/perl
$CONFDIR = "/etc/dirvish";
-
+$EXECDIR = "/usr/sbin";
# $Id: dirvish-runall.pl,v 12.0 2004/02/25 02:42:14 jw Exp $ $Name: Dirvish-1_2 $
@@ -96,7 +96,7 @@
{
seppuku 251, "ERROR: no global configuration file";
}
-$$Config{Dirvish} ||= 'dirvish';
+$$Config{Dirvish} ||= "$EXECDIR/dirvish";
$$Options{'no-run'} and $$Options{quiet} = 0;
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Dirvish mailing list [email protected] http://www.dirvish.org/mailman/listinfo/dirvish
