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:
  #1  
Old August 29th, 2006, 11:18 AM
james.poly james.poly is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Location: Lake District, UK
Posts: 157 james.poly User rank is Private First Class (20 - 50 Reputation Level)james.poly User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 7 h 10 m 33 sec
Reputation Power: 4
CronTab - Could not open

Ok... I'm a complete "n00b" when it comes to CronTabs... I have been used to a nice interface given to me by CPanel, but my new host doesn't provide that for me so I have to write my own CronTab files and install them with SSH... I'm having a little trouble.

Quote:
*/5 * * * * /usr/local/bin/php /home/DIRECTORY/htdocs/standup/game_jobs/energy.php


NB. I've removed "DIRECTORY" to cure my paranoia...

The problem is... despite the fact that that file is fine (I have tested it simply using a php include()), it still returns:

Quote:
Could not open input file: /home/zgh1077/34R7BR98/htdocs/standup/game_jobs/energy.php


Does it return that because it can't find it, or is there an other reason (such as permissions) although i know there is no PHP errors in it as I have actually opened the file in my brouser (I'm going to move it/restrict access with .htaccess at a later date)

You help/ideas are appreciated

Reply With Quote
  #2  
Old August 29th, 2006, 11:31 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,308 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 5 h 2 m 57 sec
Reputation Power: 48
You cannot use any environment variables in a file path/name.
If
Code:
/home/zgh1077/34R7BR98/htdocs/standup/game_jobs/energy.php 

exists exactly as it appears, is world read, and all of the directories in the path are world execute.

cron running something from a user's home directory tree is okay for testing, but don't leave it like that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > CronTab - Could not open


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 3 hosted by Hostway