Re: [exim] shell commands in exim.conf macros?

Pàgina inicial
Delete this message
Reply to this message
Autor: OpenMacNews
Data:  
A: Exim User's Mailing List
CC: Tony Finch, Ted Cooper
Assumpte: Re: [exim] shell commands in exim.conf macros?
hi ted/tony,

>> is it possible to expand a shell command in an exim.conf macro
>>
>> but this, with the "dig" cmd
>>     MY_HOSTNAME         = mybox.mydomain.com
>>     MY_DNS              = 10.0.0.6
>>     MY_IP               = `dig +short @MY_DNS MY_HOSTNAME`
>>     local_interfaces    = MY_IP : 127.0.0.1 : ::::1



> If you are putting the macro in
> something that uses string expantion and that allows that use of the the ${run
> string expantion, then go look at:
>
> http://www.exim.org/exim-html-4.50/doc/html/spec_11.html#IX853


...

> No, only via string expansion.
>
> However, local_interfaces is not expanded



well, rats.

i guess my option is to create a preprocessor file -- e.g. m4/perl -- and do
whatever expansion i need/want there.

inconvenient, but eminently doable.

thx 4 the clarification!

cheers,

richard