[thelist] cron jobs

djc djc at five2one.org
Wed Dec 13 23:26:45 CST 2000


Adrian - 

Quick and dirty answer:

You can't run web scripts through CRON. You have to run them through your
webserver. Instead of pointing directly to the PHP or CGI files in your
CTB, point to a shell script that calls those .cgi's and .php's through a
web interface. Create a shell script for each of them like this:

#!/bin/bash
# lets name this run1.sh
lynx http://www.bah.com/cgi-bin/autoclose.cgi

for the first one, and similar for the others. then in your ctb, call each
of the shell scripts(liek run1.ch up there) instead of the .cgi of .php
files..

Hope that makes sense, sorry to be in a rush, trying to put the finishing
touches on the new evolt site tonite..

Shout if that was unclear or you need more help :)

.djc.

On Thu, 14 Dec 2000, Adrian Fischer wrote:

> but when I add a third cron to it, the third doesnt work.  My .ctb looks
> like this:
> 0,5,10,15,20,25,30,35,40,45,50,55, * * * *
> /home/1/2/foo/bah.com/cgi-bin/autoclose.cgi
> 0,5,10,15,20,25,30,35,40,45,50,55, * * * *
> /home/1/2/foo/bah.com/cgi-bin/emailcheck.cgi
> 15, * * * * /home/1/2/foo/bah.com/cgi-bin/reminder/mail.php3





More information about the thelist mailing list