Re: [exim] pipe transport woes

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dave Evans
Datum:  
To: Douglas Choma
CC: exim-users
Betreff: Re: [exim] pipe transport woes
On Sat, Dec 16, 2006 at 11:49:44PM -0800, Douglas Choma wrote:
> #!/bin/sh
> date >>/tmp/script.log
> id >>/tmp/script.log
> cat - >>/tmp/script.log
> exit 0
>
> When executed from an Exim transport, the script.log file contains
> only the results from "id"...


My guess would be that PATH isn't what you think it is, for some reason.
On my system, "date" and "cat" are in /bin and "id" is in /usr/bin, so if your
PATH doesn't include /bin for some reason this would do it.

You might also try removing all the ">>/tmp/script.log" bits, and instead
adding "exec >>/tmp/script.log 2>&1" as the first line after #!/bin/sh

--
Dave Evans
Power Internet

PGP key: http://powernet.co.uk/~davide/pgpkey