Re: [exim] How to set up command with arguments in ${run ...…

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Toralf Lund
CC: Exim Mailing List
Assumpte: Re: [exim] How to set up command with arguments in ${run ...} ?
On Wed, 16 Mar 2005, Toralf Lund wrote:

> How exactly do I execute a command with arguments via ${run ...}? Based on the
> Exim spec, I thought I might do something like
>
> ${run{/bin/echo tst}{$value}}
>
> (and get the output of "/bin/echo tst", i.e. just "tst"), but if I try this,
> the exim log says:
>
> failed to expand "${run{/bin/echo": missing } at end of string
>
> Exim version is 4.30.


Where have you put that expansion? Note that it says it failed to
expand "${run{/bin/echo" not "${run{/bin/echo tst}{$value}}". It has
taken the white space as a terminator.

Guess: You have this in a filter? Or maybe in a pipe command? You
probably need some quotes.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book