Newsgroups: comp.unix.questions,ti.unix.tools,fj.questions.unix
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!etlnews.etl.go.jp!etlinn.etl.go.jp!etl.go.jp!trc.rwcp!rwc-tyo!news.iij.ad.jp!news.sun.co.jp!sunj-gate.Japan.Sun.COM!news2me.EBay.Sun.COM!venus.sun.com!cs.utexas.edu!news.ti.com!ief!usenet
From: Rusty Haddock <rusty@ti.com>
Subject: Re: How to Read Status Code
Sender: usenet@ief.itg.ti.com (Mr. USENET)
Message-ID: <3235DFEB.4E8B@ti.com>
Date: Tue, 10 Sep 1996 22:38:51 GMT
Reply-To: rusty@ti.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
References: <5148go$seb@sf18.dseg.ti.com> <3235AAB1.74E@ti.com>
Mime-Version: 1.0
X-Mailer: Mozilla 3.0 (WinNT; I)
Organization: Texas Instruments Software
Lines: 23
Xref: galaxy.trc.rwcp.or.jp fj.questions.unix:6080
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.questions.unix&nb=6080&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

Rusty Haddock wrote:

>    On the other hand, if you're simply going interactive with a shell, the
> shell itself will determine how you "see" to the status code.  First, run your
> program and have it return an error (it's usually best if it errors out, like
> ls a non-existant directory).  In the Korn or Bourne-based shells issue
> as your next(!) command:
> 
>         echo $$

Ooops...  I meant:

  echo $?

I should learn not to post before lunch.   Sorry 'bout that.

-Rusty-

--
Rusty Haddock, KD4WLZ       Internet: rusty@ti.com     ___
Texas Instruments           MSG ID: MWH2            |\/  o\  O
POB 869305  MS 8515         Phone: (214) 575-6838   |  ( -< o O
Plano, Texas  75086         Fax:   (214) 575-4351   |/\_V_/
