Page 1 of 1

cPanel error on Cron Job - does this mean anything to you?

Posted: Mon Aug 18, 2014 8:31 am
by simonmlewis
[text]PHP Parse error: syntax error, unexpected '{' in /usr/selector/php-cli on line 3752
Content-type: text/html

<br />
<b>Parse error</b>: syntax error, unexpected '{' in <b>/usr/selector/php-cli</b> on line <b>3752</b><br />[/text]

We are trying to run Cron Jobs, but each time the email the server issues, submits this.
This is the command :

php /usr/local/bin/php -q /home/j562595/public_html/filenamehere.php

Re: cPanel error on Cron Job - does this mean anything to yo

Posted: Mon Aug 18, 2014 8:50 am
by Celauran
Why are you calling the php command twice?

Re: cPanel error on Cron Job - does this mean anything to yo

Posted: Mon Aug 18, 2014 8:55 am
by simonmlewis
I'm not. Am i?? that command is what they hosts told me to use.
what should I be using??

Re: cPanel error on Cron Job - does this mean anything to yo

Posted: Mon Aug 18, 2014 9:07 am
by simonmlewis
You are absolutely right, and they have since told me my command is wrong, eventho they told me to use it! How daft is that!!

Ta.