Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [minesite] Crontab and MailArc on GForum

Quote Reply
Re: [minesite] Crontab and MailArc on GForum In reply to
Hi. I would suggest making a new script, something like "run_crons.cgi", and put something like this in it;

Code:
#!/usr/bin/perl

use strict;

my @commands;
$commands[0] = "perl /full/path/to/script.cgi --options";
$commands[1] = "perl /full/path/to/script.cgi --options";
$commands[2] = "perl /full/path/to/script.cgi --options";

foreach (@commands) {
print "Running: $_ \n";
system($_);
}

print "\n\nDone!!!";

.. and then just setup one cronjob, to run the above script. Basically, this will let you run the scripts, one after another.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Crontab and MailArc on GForum minesite 4653 Jul 27, 2004, 10:46 PM
Thread Re: [minesite] Crontab and MailArc on GForum
Andy 4494 Jul 28, 2004, 2:01 AM
Post Re: [Andy] Crontab and MailArc on GForum
minesite 4494 Jul 28, 2004, 2:08 AM
Thread Re: [Andy] Crontab and MailArc on GForum
minesite 4486 Jul 28, 2004, 2:53 AM
Thread Re: [minesite] Crontab and MailArc on GForum
Andy 4489 Jul 28, 2004, 2:56 AM
Post Re: [Andy] Crontab and MailArc on GForum
minesite 4497 Jul 28, 2004, 3:47 PM