Patrick:
When running it from the recipe, I find the following in my log:
procmail: Error while writing to "/usr/local/bin/php
/home/webs/site/scripts/echo.php"
I also tried writing a simple bash script (echo.sh) and got a similar error
message:
procmail: Error while writing to "/home/webs/site/scripts/echo.sh"
Very strange!
Michelle:
I'm sure it's php-cli. I compiled php for apache as a module, so the only
thing I could be running from the command line is php-cli.
[root(_at_)norfair scripts]# /usr/local/bin/php --version
PHP 5.3.3 (cli) (built: Aug 5 2010 12:55:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root(_at_)norfair scripts]# /usr/local/bin/php /home/webs/site/scripts/echo.php
echo "hi.";
Thanks again.
On Sat, Aug 7, 2010 at 3:55 PM, Patrick Shanahan
<ptilopteri(_at_)gmail(_dot_)com>wrote:
* Joel Lee <joel(_dot_)lee8(_at_)gmail(_dot_)com> [08-07-10 16:27]:
Thanks for the suggestions. Unfortunately, this doesn't help. When
commenting those lines out, it won't even run from the command line, with
the interpreter specified in the file or with the interpreter specified
in
the command line. It seems that php expects to find those lines. When
it
doesn't, it just echos back the entire contents of the file as source
code.
Undoubtedly the intent was *not* to run from the cl, but from the
procmail recipe which you requested, making your responce unthoughtful
and entirely inappropriate. Did you attempt the script from your
procmail recipe? You didn't say.
--
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail