fettereddingoskidney
Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1 7
Impact
~5k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Apr
10
awarded  Notable Question
Jul
26
awarded  Popular Question
Jun
17
awarded  Popular Question
Jun
26
awarded  Scholar
Jun
26
accepted Why is crontab giving “No such file or directory” error when the file DOES exist?
Jun
26
awarded  Tumbleweed
Jun
23
awarded  Student
Jun
22
comment Why is crontab giving “No such file or directory” error when the file DOES exist?
Here is the exact line: */1 * * * * /Applications/MAMP/bin/php5.3/bin/php /Applications/MAMP/htdocs/iconimageryidx/includes/insertPropertyRESI.php
Jun
22
comment Why is crontab giving “No such file or directory” error when the file DOES exist?
I tried that, but it appears that it is not executing at all. Currently, my only method of checking for crontab executions is through the mail notifications; I don't get any mail when I use that method. Is there an alternate method that I can use to check for errors or for other information about my cron jobs?
Jun
22
comment Why is crontab giving “No such file or directory” error when the file DOES exist?
@qweet is there any way I can specify a different PHP installation, like /Applications/MAMP/bin/php5.3/bin/php ?
Jun
22
awarded  Commentator
Jun
22
awarded  Editor
Jun
22
revised Why is crontab giving “No such file or directory” error when the file DOES exist?
added 34 characters in body
Jun
22
comment Why is crontab giving “No such file or directory” error when the file DOES exist?
The php is installed, as it comes pre-installed with MAMP -- I am using a MAMP setup. It is installed in /Applications/MAMP/bin/php5.3/bin/php. Is there any way I can use this installation in my crontab instead of the one in /usr/bin/php? The one in /usr is older, version 5.2, and is giving me an error that I am not getting with PHP 5.3. I did run the script with php -f /my/script and got the error I mentioned file {$class_name} could not be found; when I run the script using the MAMP php path, the error goes away and the script executes, but the crontab doesn't like it :? Please advise
Jun
22
comment Why is crontab giving “No such file or directory” error when the file DOES exist?
I am having an issue with that installation of PHP (see my comment below). I tried using the path to MAMP's PHP installation at /Applications/MAMP/bin/php5.3/bin/php -- for both the shebang and as a prefix in the job entry itself...no luck...I will post the errors in a moment
Jun
22
comment Why is crontab giving “No such file or directory” error when the file DOES exist?
When I use php -f (loading from /usr/bin/php) I get some output that shows that the script begins running but hits a fatal error with the message: file {$class_name} could not be found . Since I am using mamp, I tried using the path to MAMP's installation of PHP: /Applications/MAMP/bin/php5.3/bin/php -f /path/to/script.php and THIS method caused the script to execute...still no luck with the crontab though, will post errors in a minute. To make sure, I DO or DO NOT include the -f if I set the php path INLINE and not in a #! shebang?
Jun
22
comment Why is crontab giving “No such file or directory” error when the file DOES exist?
my bad, just edited the post 15 * * * * /Applications/MAMP/htdocs/iconimageryidx/includes/insertPropertyRESI.php
Jun
22
asked Why is crontab giving “No such file or directory” error when the file DOES exist?