Page 1 of 1

CRON Question

Posted: Fri May 14, 2004 1:54 pm
by randomblink
Alright...
I have searched through alot of postings that contain Cron in them... They all either point to other postings about Cron or to websites about Cron. I have googled and found nothing that helped, so...

Here I am asking...
Does anyone know of a Manual / Tutorial for using Cron from CPanel?

My host offers Cron via CPanel.
I am uncertain how to pass arguments to a PHP file.

For instance...
I want to have the Cron file run:
example.php?username=me&password=secret

I can't find the details on how to do this.
Any help would be appreciated...

Thanks in advance...

Posted: Sat May 29, 2004 11:09 pm
by dyconsulting

CRON

Posted: Sun May 30, 2004 12:30 pm
by randomblink
Well...
That is the same information that is available on my hosts CPANEL Documentation section... However, it doesn't offer instructions on how to pass arguments to the Command you load.

I now, at least, understand how to point it to the php file I want to execute... But how do I send any arguments?

Posted: Wed Jun 02, 2004 3:08 am
by patrikG
If you use the powerful search-feature on this forum and type in "cron job", you will notice that the answer is out there already.

search.php will yield threads like viewtopic.php?t=21687

What is mentioned in there are some cron job tutorials:

http://www.4webhelp.net/tutorials/misc/cron.php
http://www.webgfxcenter.com/tutorials/t ... m/155/PHP/

Easy, really. Isn't it?

Posted: Wed Sep 08, 2004 12:01 am
by anjanesh
I added in my cpanel - Advanced Unix style : (to see how cron works)

Mail will be sent to anjanesh@hotmail.com
* * * * *
Command : GET http://domian.com/subfolder/mail.php > /dev/null

mail.php is just a script to send a 1 word mail to my hotmail a/c. The script works.
* * * * * indicates every min,hr etc etc
But Im not getting anything in my hotmail a/c. I've been checking for an hr or so. Still no mail. When I run the script in the browser the mail is sent almost atonce.
Is there anything wrong with the command because this is what was given one tutorial.

Posted: Thu Sep 09, 2004 8:53 pm
by John Cartwright
make sure you are sending the correct headers because hotmail will filter them out