Date: Thu, 10 Oct 1996 10:26:22 -0400
Reply-To: Ed Bourke <EBOURKE@TDSI.JTS.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Ed Bourke <EBOURKE@TDSI.JTS.COM>
Subject: UNIX Return Codes - Reply
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
From: Jules Bosch <jules_bosch@CCMAIL.BMS.COM>
SUMMARY: I want to get the UNIX rc for the lp print
command
OS: UNIX System V, SunOS 5.5, -csh
....
Now, I want the value of the exit command associated with this
event.
In some flavors of UNIX I understand the command "echo $?"
will
display the value of the exit command. Does anybody know
what the
command might be in the UNIX OS I am using?
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
"echo $?" should work for most unixen. It won't work if you aren't
using the Bourne shell or another compatible shell. If you are
using the C-shell, try: "echo $status"
|