Cron Help

flyingt

New Member
Messages
5
Reaction score
0
Points
0
I've read multiple Cron tutorials including the one on this site and I can't get my scripts to run. None of the below permutations seem to work. The emails I receive say things such as "Input file not found." I've tried changing permissions; that didn't help.

I had them running every 5 minutes, but I switched them to every 5 hours until I can get this sorted out.

* */5 * * * php home/flyingt/public_html/count.php
* */5 * * * /usr/local/bin/php home/flyingt/www/aaa.php
* */5 * * * /usr/local/bin/php -q home/flyingt/public_html/count.php
* */5 * * * /usr/local/bin/php -q home/flyingt/www/aaa.php

Let's say I want to run the script at http://flyingtiger.exofire.net/aaa.php every 5 minutes. What do I need to do?

In case its relevant, here's the code. If I understand correctly, I should get an email that says "Hi" if I don't use the "-q" option:

<?php
echo "Hi";
?>
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
This is a programming help question..

***Thread Moved to programming help***
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
* */5 * * * /usr/local/bin/php -q  /home/flyingt/public_html/count.php

1. You need to start the path to your script with /
2. If you have multiple scripts running every five minutes, you will be in violation of x10's TOS. You either have to spread them out or do all the work in one script.
 
Top