bug#21760: timeout: Feature Request: --verbose ==> output if timeout was
From:
Thomas GĂĽttler
Subject:
bug#21760: timeout: Feature Request: --verbose ==> output if timeout was reached
Date:
Mon, 26 Oct 2015 19:35:57 +0100
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Thunderbird/41.0
Am 26.10.2015 um 16:51 schrieb Pádraig Brady:
> On 26/10/15 14:26, Thomas GĂĽttler wrote:
>>
>>
>> Am 26.10.2015 um 12:44 schrieb Pádraig Brady:
>>>
>>> I've not sure there is enough distinct actions within timeout(1) to warrant
>>> --verbose?
>>> How about doing this in the script?
>>>
>>> timeout 1s ping localhost
>>> test $? = 124 && echo { 'ping timed out'; exit 1; }
>>>
>>
>> The issue was already closed with "wontfix". This leads me to the
>> conclusion that your are not interested in my answer.
>>
>> Was your "How about doing this in the script?" really a question?
>
> We can always reopen if necessary.
Who decides if it necessary or not? What needs to be done
to reopen it?
> I closed as wontfix for now as the above is a strong suggestion.
> Generally one needs to handle the timeout in various ways,
> and printing a diagnostic is just one of those.
yes, you are right. This issue is about printing a
message. If other ways are needed, then your
above solution can be used as a skeleton. But this
should be handled in different issues/bug-reports.
Regards,
Thomas GĂĽttler
--
http://www.thomas-guettler.de/