Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat? Linux
Web server: Apache
Perl version: 5.0.7
Client OS: Windows XP
Web Browser: Mozilla Firefox
Categories: Mail

-- RaviGupta1 - 20 Jul 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-07-16 - TommKlein
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.