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
- How do most people run mailnotify and statistics
- Does anyone know how to tell perl that the TWiki module exist in the lib directory?
- 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