Link to home
Start Free TrialLog in
Avatar of ZURINET
ZURINET

asked on

cronjob cannot run

Hi all I need to setup a conjob on FreeBSD

The command I need to run is.. see below
I am getting the error =  php5: not found

0,15,30,45 * * * * cd /home/smallwor/www/mydomainproject.ch/SwiftRiver; php5 index.php --uri=process >> application/logs/process.log 2>&1

Open in new window


I am just woundering if there is a syntax error within this command.

Thanks for your help

ps
the local config file is /usr/local/php53/etc/php-profiles/php53/standard/php.ini
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you have a line at the top of your cron job telling the system what program should run the cron job?

For example:

#!/usr/www/cgi-bin/php5.cgi
<?php
Hello ZURINET,

see if following helps you.

http://forums.freebsd.org/showthread.php?t=10256

http://www.freebsdblog.org/6/cron-job/

Thank you.

Amar Bardoliwala.