coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature enhancement for 'timeout'


From: Pádraig Brady
Subject: Re: feature enhancement for 'timeout'
Date: Tue, 25 Feb 2014 16:30:42 +0000
User-agent: 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]