My Cron Job is all messed up

Status
Not open for further replies.

budlightyear

New Member
Messages
9
Reaction score
0
Points
0
I will have to send you a file to check this out cause i might be all over the place with it but if anyone can help it would be great. Thanks
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
How are you executing it? You're not giving much information to help =P
 

budlightyear

New Member
Messages
9
Reaction score
0
Points
0
oh sorry ya iv got the /home html/cron.php thing going on but i think it will execute i just dont think i have the right coding down or something.It sends me emails and says it cant find these??


/home/budlight/public_html/cron_fivemins.php: line 1: ?php: No such file or directory
/home/budlight/public_html/cron_fivemins.php: line 2: include: command not found
/home/budlight/public_html/cron_fivemins.php: line 3: global: command not found
/home/budlight/public_html/cron_fivemins.php: line 4: syntax error near unexpected token `'cron_fivemins.php','',$_SERVER['SCRIPT_NAME']'
/home/budlight/public_html/cron_fivemins.php: line 4: `$path=$_SERVER['HTTP_HOST'].str_replace('cron_fivemins.php','',$_SERVER['SCRIPT_NAME']);'

So i have no clue what is wrong with it cause it reads some of the script you can see it.Oh im a little new at this forum thing so bare with me please and thanks.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
In your cPanel where you have the cron setup, what do you have on the cron line?

-Corey
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Change it to this:

php-cron -q /home/budlight/public_html/cron_fivemins.php
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I just logged in your cPanel and do not see any crons setup. I added in the one above for you.

-Corey
 

budlightyear

New Member
Messages
9
Reaction score
0
Points
0
i actually put it on and then deleted it cause my email was getting flooded with the cron jobs. But see the only thing is I know its not excueting my script i dont know if its good or not?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I'm not sure if anything is wrong with your script but I verified the cron is running correctly from our cron log.

-Corey
 

budlightyear

New Member
Messages
9
Reaction score
0
Points
0
Oh well ya i dont know either cause my cron is to like heal and give energy and it hasnt done that at all so im not sure what is going on.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Try running it manually and see if it does what it's supposed to.
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Yes, that's what he means, access it directly.
Going to yourwebsite.com/cron_fivemins.php should work.
 
Last edited:
Status
Not open for further replies.
Top