Error creating a cron

Status
Not open for further replies.

messier79

New Member
Messages
1
Reaction score
0
Points
0
Hi

I use the account 'messier79'.
I want to create a cron using the file :
http://messier79.x10hosting.com/lib/cronFunctions.php

If I execute this file directly, no problem, but with the cron, I obtain :
/home/messier7/public_html/lib/cronFunctions.php: line 1: ?
: No such file or directory
/home/messier7/public_html/lib/cronFunctions.php: line 2: syntax error near unexpected token `"../setup.php"'
/home/messier7/public_html/lib/cronFunctions.php: line 2: `include("../setup.php");
'
Initially, the file was encoded in UTF8, so I thought the problem could come from there, so I encoded in Latin1, but no change...

Any idea ?
Thanks
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Try making your cron like this:

cd /home/messier7/public_html/lib ; php -q cronFunctions.php

See if that works.
 
Status
Not open for further replies.
Top