Cron job on remote server

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
fitchic77
Forum Commoner
Posts: 51
Joined: Thu Jul 20, 2006 11:57 pm

Cron job on remote server

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
fitchic77
Forum Commoner
Posts: 51
Joined: Thu Jul 20, 2006 11:57 pm

THANKS!

Post 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.
User avatar
kbrown3074
Forum Contributor
Posts: 119
Joined: Thu Jul 20, 2006 1:36 pm

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
Post Reply