Gossamer Forum
Home : Products : Gossamer Forum : Discussion :


Quote Reply
Since you need to start a cron job if you want to use subscriptions, I had to modify "subscriptions.pl" a bit, as my ISP does not allow shell cronjobs for standard server packages. What I did is I modified the subscriptions.pl - I commented out every line but one line

my %opt;
# print "Content-type: text/html\n\n";
# print "This script can only be run from shell/command prompt.";
#else {
# GetOptions(
# 'help' => \$opt{help},
# 'send' => \$opt{send},
# 'debug' => \$opt{debug},
# 'file-debug=s' => \$opt{debug_file}
# );
# if ($opt{send}) {
GForum::Subscribe::send_all(@opt{'debug', 'debug_file'});
# }
# else {
# usage();
# }

Now the script can be executed by html server and be included into a standard html page via SSI. Since my ISP allows a cron job for HTML pages, it just works as it should. Wink

Just in case, anybody needs such a solution..

Since the script itself is in a .htaccess protected area, it cannot be executed by public..
Subject Author Views Date
Thread subscriptions.pl blackjack 1857 Jul 23, 2003, 8:00 AM
Thread Re: [blackjack] subscriptions.pl
Alex 1787 Jul 23, 2003, 10:22 AM
Post Re: [Alex] subscriptions.pl
blackjack 1772 Jul 24, 2003, 12:25 AM