Jump to content

[SOLVED] php via cron


Guardian-Mage

Recommended Posts

My host is bluehost and I am using cPanel. My Cron job is set to run every 2 minutes (Which it does since I get an email every 2 minutes). My code is this

<?php echo "TEST"; ?>

 

I get the following email:

/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file

 

My command is this

/usr/bin/php -q /home2/safetyha/public_html/globaltrainingedge.com/emailer/cron.emailer.php

 

If I use quotes

"/usr/bin/php -q /home2/safetyha/public_html/globaltrainingedge.com/emailer/cron.emailer.php"

 

I get this:

/bin/sh: php5 -q /home2/safetyha/public_html/globaltrainingedge.com/emailer/cron.emailer.php: No such file or directory

Link to comment
https://forums.phpfreaks.com/topic/114191-solved-php-via-cron/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.