Tags:
create new tag
, view all tags

Question

My host does not allow scheduling of jobs, so I can't run mailNotify. Can it be modified to run as a CGI script? If so, how rough would that be? Has anyone done it before?

I realize I'd have to hit it frequently to get mail to send, but I'm willing to do so.

Thanks, Tim.

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- TimHuntley - 09 Jun 2004

Answer

Hi Tim, there are a few mentions "of workaround scripts are available" scattered throughout the twiki documentation and this site, but so far I have not been able to find them and nobody has answered my (admittedly quiet) request for them.

I have made a FeatureEnhancementRequest for mailnotify to be turned into a cgi-script (MailNotifyCgiScript) but no takers so far. Maybe now with more than just myself asking it might get done faster. smile

-- MattWilkie - 09 Jun 2004

You could create a simple cgi wrapper that calls mailnotify. Then you can call the wrapper from a scheduled task on any server that has Internet access.

Example on Unix using the wget utility:

wget http://yourserver.com/cgi-bin/wrapmailnotify?magic=kingdom >dev/null

Hint: The wrapper should call mailnotify only if above magic parameter is supplied. This is to avoid a mailnotify call if the wrapper is accessed randomly, like by a robot.

-- PeterThoeny - 01 Aug 2004

Topic revision: r3 - 2004-08-01 - PeterThoeny
 
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.