I'm trying to set up a cron job can someone tell me if i have the file path right usr/local/bin/php /home/xxxxxxx/xxxxxx/xxxxxx/components/com_craigslistautoresponder/craigslistautoresponder.php
try below: php -q /home/xxxxxxx/xxxxxx/xxxxxx/components/com_craigslistautoresponder/craigslistautoresponder.php It should work. Kailash
I think should be: /usr/bin/php /home/xxxxxxx/xxxxxx/xxxxxx/components/com_craigslistautoresponder/craigslistautoresponder.php
Actually, it's: /usr/bin/php -q -f /home/xxxxxxx/xxxxxx/xxxxxx/components/com_craigslistautoresponder/craigslistautoresponder.php &>/dev/null &
It be the safest to just use php which will use the PHP CLI. So doing php -q which in most cPanel machines will link back to /usr/local/bin/php . /usr/bin/php on most systems is actually the CGI version which seems silly to run since you're on the command line and should use the command line interface PHP
Thanks people for your advice. I forgot the first / before usr/local/bin/php Well this works for me so i'm gonna stick with it.