When running the cron job on a ubuntu / webmin administered system. I get the following error message

Can't locate setlib.cfg in @INC (@INC contains: bin /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at tools/mailnotify line 28.
BEGIN failed--compilation aborted at tools/mailnotify line 29.
The file is there alright, but the path is not included in the INC variable.

On a debian installed ubuntu version the correct path should be, at least to my knowledge: /usr/lib/cgi-bin/foswiki

-- YogiParish - 28 Jan 2009


I have a debian installed ubuntu version, and to get this to work my cronjob entry is
07 3 * * * (cd /var/lib/foswiki/ && perl -I /usr/lib/cgi-bin/foswiki tools/mailnotify -q)

-- EdMcDonagh - 23 Apr 2009

It does not seem like Yogu comes back to his bug

I consider this a support question answered.

No Action

-- KennethLavrsen - 16 Jun 2009

I'm running Ubuntu as well and had to include the entire path to foswiki/bin in order for this to work. Including only 'bin' as shown in the examples does not work. Foswiki version is 1.1.1.
00 19 * * * (cd /var/www/wiki && perl -I /var/www/wiki/bin tools/mailnotify -user AdminUser -q)

-- DaveVanderWall - 28 Oct 2010

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads