|
From: | Mart Frauenlob |
Subject: | Re: [Help-bash] catching read error conditions |
Date: | Mon, 28 Jan 2013 17:11:57 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
On 28.01.2013 16:59, Chet Ramey wrote:
On 1/28/13 8:32 AM, Greg Wooledge wrote:Well, any of the ways of testing the exit status should suffice. Also note that you can't distinguish a failure-due-to-timeout from other kinds of failures.Not quite true. The manual says: "The exit status is greater than 128 if the timeout is exceeded." That does narrow the error space.
I observed an exit status of 142 if I remember correctly. Is that consistent over bash versions 3+ ? Could I rely on that for catching the evidence of timeout?
[Prev in Thread] | Current Thread | [Next in Thread] |