PDA

View Full Version : Fake crontab


johanzen
February 17th, 2006, 15:17
I need to automate a process on my server (an autoresponder) and I haven't access to cron.

I know there is several scripts out there to solve this problem, but all I've seen so far is for money. Nothing bad in that. I'm willing to pay for the scripts, but if I am to pay, I also want to know forhand that I can actually use the script ;)

This is what I have:
Server 1: ASP - PHP5 - MySQL
Server 2: CGI og PHP

The responder/database is hosted on server 1.

If I can not automate the process using asp, I though it would eventually be possible to make server 2 run a cgi-script, executing the responder (a php-script) on server 1

I really don't like the idea of manually executing the php-script or having it executed by a page access (I know that can be easely done, but might overheat my server)

Any help??

Johanzen

the_pm
February 18th, 2006, 19:14
Hello johanzen. I was holding off on answering, because I was hoping someone with more experience in this area would be able to jump in.

I would find it hard to believe anything you're describing would have any real affect on a server's CPU load. Can you be more specific about to what you are referring when you say "responder?" Are you looking for a script that automatically responds when you're sent an email, or when a particular interaction takes place on your site?

Dan
February 18th, 2006, 21:10
Not sure if this is what you're looking for, but what some scripts do is

if(rand(0,25) == 25) {
// do something
}

That way it only happens once in a while. It isn't the best answer, but better than having it run every time [if that will suffice]

Anoop
February 20th, 2006, 03:51
I need to automate a process on my server (an autoresponder) and I haven't access to cron.


Contact your server tech support. They could help you adding the cron tab entry. CPanel and many other control panel softwares already offer cron tab to users.

johanzen
June 11th, 2006, 14:43
Thank you all. I have solved the problem by paying for an autoresponder service instead of hosting it my self.

Michael