[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature enhancement for 'timeout'
From: |
Thomas Sattler |
Subject: |
Re: feature enhancement for 'timeout' |
Date: |
Tue, 25 Feb 2014 17:57:32 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Am 25.02.2014 17:30, schrieb Pádraig Brady:
> On 02/25/2014 04:10 PM, Thomas Sattler wrote:
>> 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?
No, I thought of timeout(1) informing its child process about the
duration. So the command could know about the timeout. (Just for
the unusual case where it could want to know and care about it.)
I'm aware that most commands run via timeout(1) will not make use
of this. On the other hand letting timeout(1) put the duration
into its client process' environment shouldn't hurt either.
Thomas