HP3000-L Archives

April 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Mon, 3 Apr 2000 09:31:32 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
At 1:05 PM -0400 4/3/00, [log in to unmask] wrote:
>I am sorry to ask such a basic question, but I don't remember how to check
>in a script if a previous command ended correctly.  What do I check to find
>out if something worked?
>
>Thanks in advance for answering a basic question,
>David


Check the built-in shell variable "$?". That should give you the exit value
of the last executed command.


Barry Lake                                 [log in to unmask]
Allegro Consultants, Inc.                  www.allegro.com
(408)252-2330

ATOM RSS1 RSS2