PDA

View Full Version : cron tasks



jason21
07-17-2007, 10:29 AM
hi,
i trying to creat a cron task i have read the forum an di use this:


cd "/home/user/public_html/'; php -q 'cron.php" > /dev/null

cd "/home/user/public_html/'; php -q 'cron.php"


but i receive this error by mail:
/bin/sh: line 0: cd: /home/user/public_html/'; php -q 'cron.php: No such
file or directory

what i doing wrong?
thanks for your help

sjlplat
07-17-2007, 10:44 AM
The command should look like this:


/usr/bin/php -q /home/user/public_html/path/to/cron.php