Re: [exim] Help debugging pipe transport

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Jason Martens
Data:  
Para: exim-users
Asunto: Re: [exim] Help debugging pipe transport
On Sat, 2005-04-16 at 13:47 +0200, Brian Candler wrote:
> On Fri, Apr 15, 2005 at 11:49:24AM -0500, Jason Martens wrote:
> > crimereport_transport:
> >         driver = pipe
> >         command = /usr/local/bin/script
> >         current_directory = /tmp
> >         group = groupname
> >         home_directory = /tmp
> >         user = username

> >
> > This is going to pipe the e-mail message into the /usr/local/bin/script
> > right?
>
> Try replacing /usr/local/bin/script with
>
> #!/bin/sh
> date >>/tmp/script.log
> id >>/tmp/script.log
> cat - >>/tmp/script.log
> exit 0
>
> (remember chmod 755 /usr/local/bin/script).
>
> Brian.


Ok, I tried that, and all I get in /tmp/script.log is the id command
output. The date and cat output is nowhere to be found. Do I need to
use the "use_shell" option?

Thanks again,
Jason Martens