SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old March 10th, 2004, 08:10 PM
GuruGeek2003 GuruGeek2003 is offline
Null Zero
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 24 GuruGeek2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 56 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 11th, 2004, 07:46 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
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'?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > CRON, Shells, and PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway