Tags:
create new tag
view all tags

Question

  • TWiki version: Feb 03
  • Perl version: 5.6.0
  • Web server & version: Apache/1.3.27 (Unix) (Red-Hat/Linux)
  • Server OS: RedHat
  • Web browser & version: Mozilla 1.4b
  • Client OS: WindowsXP

My question is how to best use the mailnotify script without a crontab. I have kinda figured that I can simply access cgi-bin/twiki/mailnotify?-q from a browser and it will perform the notify, but give an ugly error in the logs about a premature end of script. So, I can use a crontab on an external machine to trigger the mailings.

Is there a real workaround to this besides this little hack?

-- TWikiGuest - 14 May 2003

Answer

The mailnotify error is a bug, please log this with details of the error log messages as in SupportGuidelines.

Using crontab on an external machine should work fine, you can Google for previous pages on this issue. If you don't have crontab on the box, it's hard to see how you can do this any other way...

-- RichardDonkin - 14 May 2003

Unlike the CVS:bin/statistics script, the CVS:bin/mailnotify script is not designed to run in dual mode, e.g. you can run it only as a shell script, not as a cgi script. You get the error because the script does not return a correct httpd header. Therefore this sounds more like a FeatureEnhancementRequest then a bug. The implementation would be easy, basically copy the concept of the statistics script.

As a workaround you could write a small wrapper cgi program that executes the mailnotify script.

-- PeterThoeny - 15 May 2003

now a feature request: MailNotifyCgiScript

-- MattWilkie - 21 May 2004

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-08-10 - DavidForrest
 
  • 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.