GNU bug report logs - #6308
Preserve command exit code in timeout(3)

Previous Next

Package: coreutils;

Reported by: "Ángel González" <keisial <at> gmail.com>

Date: Sun, 30 May 2010 00:23:01 UTC

Severity: normal

Tags: moreinfo

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 6308 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Krennwallner <tkren <at> kr.tuwien.ac.at>
To: Jim Meyering <jim <at> meyering.net>
Cc: Pádraig Brady <P <at> draigBrady.com>,
	Ángel González <keisial <at> gmail.com>,
	6308 <at> debbugs.gnu.org
Subject: Re: bug#6308: Preserve command exit code in timeout(3)
Date: Sun, 21 Oct 2012 22:36:43 +0200
Dear Jim, dear Pádraig,

preserving the command's exit code is useful for, e.g., running solver
competitions, where competition participants have an upper bound on the
runtime for finding solutions to very hard problems.

Imagine you want to run a command which is outputting (periodically or
on-request) solutions to optimization problems, where better and better
solutions will be printed over time, until the final solution is
obtained.

Now if the process gets interrupted by timeout's signal, the command
will return with an exit code different from the one that means "final
solution found".  If there was already an "interesting" solution found,
a particular exit code would be returned, and if no solution has been
found until the signal was received would result in yet another exit
code.

This way, one would easily obtain the status of the solution without
parsing the output.  For exit code 124 one would only know that there
was a timeout, but not if the computation has already revealed
"interesting" results.

I'm thus very interested into seeing timeout --exit-status.

Best,
TK

-- 
Thomas Krennwallner
University assistant
.
TU Wien - Vienna University of Technology
Institute of Information Systems
Favoritenstrasse 9-11, 1040 Wien, Austria
.
T: +43 1 58801 18469   F: +43 1 58801 918469
tkren AT kr DOT tuwien DOT ac DOT at
http://www.kr.tuwien.ac.at/staff/tkren/
.
DVR: 0005886




This bug report was last modified 12 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.