CRON JOB does not work

Status
Not open for further replies.

SharkyLV

New Member
Messages
3
Reaction score
0
Points
0
Hi.
I am trying to get my cronjob work but I cannot. All I need is to run php file in time interval.
For example I made new entry which runs every 30 mins
HTML:
php-cron  /home/juicysvr/public_html/corn_j.php
but it does not work.
I suppose it does not send email either.

It is really important and I would be really appreciated if someone helped me.
Thank you very much.
 
Last edited:

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
For starters I think it should be:
/usr/local/bin/php -f /home/juicysvr/public_html/corn_j.php
Also, it looks like you misspelt cron as corn, so that could be another problem.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
If the paths, etc are wrong, then he should still get an email from the crondaemon.

Seems like cron jobs on at least Lotus and Chopin are not running.
 

SharkyLV

New Member
Messages
3
Reaction score
0
Points
0
I am on cossacks server. And with /usr/local/bin/php -f /home/juicysvr/public_html/corn_j.php it still does not work. :(

if i put php require function in corn job file (corn_j.php) should I use ordinary require("file.php"); or should I use some different for example require("/home/juicysvr/public_html/file.php"); ?
(if file.php contains some db connection functions.)
 
Last edited:

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
As mentioned, it seems cron is down on some servers, so it is very likely that your problem is arising from that.
 
Status
Not open for further replies.
Top