Re: [Exim] Can't get the output from the run command

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Boris Kovalenko
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Can't get the output from the run command
On Wed, 18 Sep 2002, Boris Kovalenko wrote:

> # Exim filter
> testprint "${run{/usr/local/bin/mytest}{}}"
>
> /usr/local/bin/mytest just writes "Hello, world!" to stdout:


> Output:
> Testprint:
>
> If I understand documentation:
>    "If both strings are omitted, the result is the standard output        on
> success, and nothing on failure."


But you haven't omitted both strings. You have got an empty string ({}).
That is what exim has printed. Try

testprint "${run{/usr/local/bin/mytest}}"

and then try

testprint "${run{/usr/local/bin/mytest}{XXXXX}}"

to see the difference.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.