Gossamer Forum
Home : General : Perl Programming :

CRON without telnet

Quote Reply
CRON without telnet
Hi,
I would like to use CRON but I don't have telnet access. Is it possible to do the same work as CRON without telnet or anything else?

I think about an internal clock or a countdown in the script...
In fact, I want to load a page every day at midnight...

Thanks

Toinbo
Quote Reply
Re: [BestWeb] CRON without telnet In reply to
I was wondering the same thing...
--Sanguinarius
Your resident vampire ;P
http://www.sanguinarius.org/
Quote Reply
Re: [Sanguinarius] CRON without telnet In reply to
You could try to use SSH clients like Putty, they offer the same functions as Telnet.
Quote Reply
Re: [BestWeb] CRON without telnet In reply to
Hi,

Basically the idea is to have "something" that is going to run your script or page.

If you don't have cron, what you should consider is the following:

* Create a script is going to check the time and act upon it. For instance, each time the script is run, it will check if the time is between 12:00 and 12:30 and if that is the case, it will launch the script you wanted to launch at 12:00

* Put this script so that it is launched as often as possible. Using SSI ou the IMG tag on one of your busiest page should do the trick. If the traffic on your site is quite slow, try putting the script call (SSI / IMG) on all your pages, to maximize your chnaces...

* In the script you develop, make sure you have some "previous run" check, to prevent the script being run several times between 12:00 and 12:30. For instance, once the script is run, it should create a file with the date, and before launching your page, should check that the date is of the previous day...

Let me know if I've been unclear...

Regards,

Maxime Grandchamp
TÚlÚchargez nos livres: http://marketing-internet.com/livres/
Maxime Grandchamp
TÚlÚchargez nos livres: http://marketing-internet.com/livres/
Quote Reply
Re: [BestWeb] CRON without telnet In reply to
Can you contact your web hosting provider and ask them to setup a CRONTAB for you? They surely must be able to do this, or I would seriously consider switching hosts. Have you looked at Gossame Host?

http://www.gossamer-host.com/

Update: After doing a Google search on this topic, it returned me to another thread on this forum, which suggested a CRON alternative:

http://www.smartcgis.com/cron/

However, you need the Perl Module LWP::UserAgent installed for this, and a number of hosting providers don't have this installed by default. And if they ain't willing to setup a CRON job for you, then I doubt they are willing to install a module either. But you could always try!

Good luck.

- wil

Last edited by:

Wil: May 17, 2002, 4:05 AM