From owner-freebsd-questions Mon Nov 8 11:26:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from osage.gate.net (osage.gate.net [198.206.134.25]) by hub.freebsd.org (Postfix) with ESMTP id 7459615277 for ; Mon, 8 Nov 1999 11:26:18 -0800 (PST) (envelope-from wjm@gate.net) Received: from tiwa.gate.net (wjm@tiwa.gate.net [199.227.0.141]) by osage.gate.net (8.8.6/8.6.12) with ESMTP id OAA92686; Mon, 8 Nov 1999 14:26:14 -0500 Received: from localhost (wjm@localhost) by tiwa.gate.net (8.8.6/8.7.3) with ESMTP id OAA53002; Mon, 8 Nov 1999 14:26:28 -0500 X-Authentication-Warning: tiwa.gate.net: wjm owned process doing -bs Date: Mon, 8 Nov 1999 14:26:28 -0500 (EST) From: William Melanson To: slava revutchi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shell's exit status variable In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 8 Nov 1999, slava revutchi wrote: % % Hello, % % How do I check the shell's exit status variable? % % Thanks. % slava % I know within the bash shell it would be as such: >[script]; echo $? The "$?" varaible prints the exit status of the last command run. Either a "1" or "0". - Bill --------------------------------oOo------------------------------------ William J. Melanson CyberGate, Inc. | e.spire Communications Sr Network Controller Deerfield Beach, FL 33441 Network Operations Center Phone: (954) 429-8080 finger wjm@gate.net PGP public key --------------------------------oOo------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message