|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
CRON, Shells, and PHP
Hello,
I have created a crontab that calls a PHP script. Unfortunately, my shell is TSCH and crons run in SH. When it runs, I get: sh: php: not found I've even tried placing this into my crontab /usr/bin/php -q /path/to/script.php and it returns sh:/usr/bin/php not found Any suggestions on how to get PHP started so my script can run? Any suggestions over all on solving this? Thanks, Roger |
|
#2
|
||||
|
||||
|
The fact your shell is tcsh has nothing to do with the problem.
The method you already tried should have worked ok: /usr/bin/php -q /path/to/script.php What is the result when you execute this in a shell? Are you sure the path to php is correct - what is the result of 'which php'?
__________________
FreeBSD Admin Tips Tricks and Scripts |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > CRON, Shells, and PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|