Question
hi ,
i am facing one problem :
i am not able to access mailnotify script out sides of tools foledr.
Error is :
Can't locate TWiki/Contrib/Mailer.pm in @INC (@INC contains: /etc/httpd/lib /etc/httpd/twiki/tools /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at /etc/httpd/twiki/tools/mailnotify line 44.
BEGIN failed--compilation aborted at /etc/httpd/twiki/tools/mailnotify line 44.
Anybody has any idea?
Environment
--
RaviGupta1 - 20 Jul 2006
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
How are you invoking the script?
At the top of the script itself is a little "hint" about making sure to add the TWiki bin dir to the perl search path using the invocation: perl -I <path-to-twiki-bin>
/mailnotify
I don't see twiki/bin anywhere in the @INC output above -- which is likely why it's failing.
-- BrentRolland - 21 Jul 2006
0 0 * * * cd .../twiki/tools && perl -I .../twiki/bin mailnotify -q Public Private
it works
-- TommKlein - 16 Jul 2007