Page 1 of 1

Cron job on remote server

Posted: Thu Jul 27, 2006 2:13 pm
by fitchic77
I need to set a cron job to basically sent out an email dynamically based on results from a query. I'm using Sch. Tasks with windows, but do not want to.

I have a .php file already created that does the query and sending the email....so now all I need is the cron piece.

I've read several tutorials on this, but I can't seem to find out how to set it up on a remote server. I can't remote in either.

I would need the cron job to run dailey at like 2:00 a.m. The server is a windows server that runs php.

Any help would be most appreciated!

Thanks,
Andrea

Posted: Thu Jul 27, 2006 3:26 pm
by Chris Corbyn
cron is linux, although you can probably get a windows version.

If you can't remote connect to the server and get a shell then I guess you're stuck since you need to edit the crontab file(s).

Some hosting panels such as CPanel provide a cron setup wizard for you via your web browser.

THANKS!

Posted: Thu Jul 27, 2006 4:40 pm
by fitchic77
Ok. Jason. That is what I thought.

If I do get on a LINUX server, do you know how to set up (step by step) a cron job?

Thanks.

Posted: Thu Jul 27, 2006 4:59 pm
by kbrown3074
to edit your cron just type 'crontab -e' There should be a help file too to tell you what the syntax for the frequency of the job. I have cron jobs running at work but I dont quite remember what values go where to set it up.

Posted: Thu Jul 27, 2006 6:32 pm
by Weirdan
Ok. Jason. That is what I thought
His name is Chris :) Jason is an owner of this board, thus the email address from which you're getting notifications.