Mailing List Archive

How to set option using output from system command?
How to set option using output from system command?

deliver_queue_load_max = ${run{/bin/grep 'processor' /proc/cpuinfo -c}}

fixed-point number expected for deliver_queue_load_max


deliver_queue_load_max = ${run{/bin/grep 'processor' /proc/cpuinfo -c}}{$value}

fixed-point number expected for deliver_queue_load_max


deliver_queue_load_max = ${run{/bin/grep 'processor' /proc/cpuinfo -c}{$value}}

fixed-point number expected for deliver_queue_load_max

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: How to set option using output from system command? [ In reply to ]
On 18/01/2021 16:29, krzf83--- via Exim-users wrote:
> How to set option using output from system command?
>
> deliver_queue_load_max = ${run{/bin/grep 'processor' /proc/cpuinfo -c}}

That option does not expand its value, so you can't.
--
Cheers,
Jeremy

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/