Tags:
create new tag
, view all tags

Question

  • TWiki version: Dec 2001
  • Perl version: 5 5.60
  • Web server & version: Apache
  • Server OS: Red Hat
  • Web browser & version:
  • Client OS:

My administrator tried to set up the mailnotify and statistics using the cron.daily option but system complained that it could not see the TWiki.pm module.

My answer was to to create a manual entry in the cron file. His was to copy TWiki.pm to somewhere that the system could see.

So my questsions are

  1. How do most people run mailnotify and statistics
  2. Does anyone know how to tell perl that the TWiki module exist in the lib directory?
  3. Does any one use Cron.daily? If so how did you get it to work?

BTW I found that the install documentation on these elements was not up to the standard of the rest, is there a definitive source of info about these features?

-- MartinRoberts - 03 Feb 2003

Answer

The trick is to first change to the TWiki bin directory. Here is an example cron tab entry:

0 0,6,12,18 * * * (cd /file/path/to/twiki/bin; ./mailnotify >/file/path/to/twiki/pub/mailnotify.txt 2>&1)
0 0 * * * (cd /file/path/to/twiki/bin; ./geturl your.domain.com /scripturlpath/statistics >/file/path/to/twiki/pub/stats.html 2>&1)

-- PeterThoeny - 04 Feb 2003

Thanks for this. Can we have the examples in the installation instructions?

-- MartinRoberts - 04 Feb 2003

They're in the TWikiSiteTools topic which talks about setting these things up. The main TWikiInstallationGuide links to this topic, but I think the link should either be more prominent, or be converted into an include, because this is in my opinion an integral part of the installation of a TWiki.

-- WalterMundt - 04 Feb 2003

Topic revision: r4 - 2003-02-04 - WalterMundt
 
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.