On Sun, May 23, 2004 at 03:59:54AM +0100, John wrote:
> Hi,
> I'm sorry if this has been asked many times before but how do I pipe new
> email to a file instead of to a mailbox? I tried adding an alias to a file,
> but it bounced and said 'Can't write output', then I tried to pipe it to a
> program (the php interpreter) like this "|php /home/php-script.php"
> and that didn't work either.

try the full path:
|/usr/local/bin/php /home/php-script.php

or, if using qmail,
| /var/qmail/bin/preline /usr/local/bin/php /home/php-script.php

use 'which php' to find the path to php

-Mark

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to