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 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

 
Topic revision: r4 - 2007-07-16 - TommKlein
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.