Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
On 02/25/2014 04:10 PM, Thomas Sattler wrote:
> Hi there ...
>
> How about exporting the DURATION
> to the command's environment?
So you mean for timeout(1) to inspect the env and honor a DURATION there?
Generally we try to avoid having the environment as another configuration
vector,
especially when restricted to a single command where it would provide little
benefit.
Consider:
DURATION=10m
timeout $DURATION command1
timeout $DURATION command2
...
thanks,
Pádraig.