Assuming of course that we are on a *NIX system.
-James
-----Original Message-----
From: James Kelty [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 4:37 PM
To: [EMAIL PROTECTED]
Subject: RE: executing a cgi-script continously
While I agree that having cron access does vary, your solution wouldn't
really handle the DB being
down either, unless of course there is some error detection going on it the
script in the first place.
In either case, they would both work, or having an at now command at the
bottom of the script would
work too. Basically, there are, at least, 3 ways of doing this, but one
isn't exactly better that the next.
-James
-----Original Message-----
From: Morbus Iff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 4:28 PM
To: [EMAIL PROTECTED]
Subject: RE: executing a cgi-script continously
>>Is it possible to have a CGI script that, at the end of doing all the
>
>James Keltys idea using a perl script in cron using LWP::Simple against the
>CGI in question sounds the most obvious answer
How do you figure? He wants to run it after the script is done, not every X
minutes, like a cron. I mean, sure, you could throw a cron of every minute
or so, but that doesn't take into effect if the script has been completed,
if the DB is down, or anything of the sort. He may not have cron access,
either.
Ultimately, he wants a continuous loop, not a timed loop.
Enlighten me if I'm wrong, of course.
>can you give me an example of "Content-type header and then a Location:
>header >that referred back to the script" ? Should this be at or near the
>end of the
You would throw it near the end of the script, after the script has done
everything you want it to do. This assumes that your script doesn't spit
out any HTML (or really anything else) to the web browser or user.
print "Location: http://path/to/cgi/script.pl\n\n";
--
Morbus Iff ( i am your scary godmother )
http://www.disobey.com/ && http://www.gamegrene.com/
please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]