minyanmaps
04-16-2008, 11:58 AM
Hi all,
I've been trying to set up a filter so that it gets piped to an email (i've also tried in the past to forward my emails to a script for the same effect, and i've gotten the same results).
Step 1) I've verified that the filter works correctly
Step 2) I created my script
test.php
#!/usr/bin/php (i've also tried /ramdisk/bin/php5
<? echo 'hello world;
Step 3) chmod 755 test.php
Step 4) Send an email
Step 5) Response of email:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
pipe to |/home/xxxxxxxx/public_html/maintenance/test.php
generated by xxxxxxxxx@minyanmaps.com
local delivery failed
I've tried to run the script from the shell (note I don't have shell access, but i'm using a PHP/AJAX combination to "emulate" a shell for non interactive programs) and I get the output
sh: ./test.php: /usr/bin/php
Can anybody tell me what i'm doing wrong?
I've been trying to set up a filter so that it gets piped to an email (i've also tried in the past to forward my emails to a script for the same effect, and i've gotten the same results).
Step 1) I've verified that the filter works correctly
Step 2) I created my script
test.php
#!/usr/bin/php (i've also tried /ramdisk/bin/php5
<? echo 'hello world;
Step 3) chmod 755 test.php
Step 4) Send an email
Step 5) Response of email:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
pipe to |/home/xxxxxxxx/public_html/maintenance/test.php
generated by xxxxxxxxx@minyanmaps.com
local delivery failed
I've tried to run the script from the shell (note I don't have shell access, but i'm using a PHP/AJAX combination to "emulate" a shell for non interactive programs) and I get the output
sh: ./test.php: /usr/bin/php
Can anybody tell me what i'm doing wrong?