using exit codes
George Georgalis
george at galis.org
Fri Mar 5 14:56:03 PST 2004
On Fri, Mar 05, 2004 at 02:52:37PM -0800, Michael O'Keefe wrote:
>George Georgalis wrote:
>>Hi all,
>>
>>anybody know how to capture specific exit codes from programs?
>>ie what's the magic exitcode function?
>>
>>#!/bin/bash
>>e=exitcode "sh program.sh"
>
>$? in bash
>prolly $? in *sh interpreters
Works perfect, thanks!
// George
--
George Georgalis, Architect and administrator, Linux services. IXOYE
http://www.galis.org/george cell:646-331-2027 mailto:george at galis.org
Key fingerprint = 5415 2738 61CF 6AE1 E9A7 9EF0 0186 503B 9831 1631
More information about the KPLUG-List
mailing list