From: "Brian J. Krupski" <krupski@idx.com>
Subject: Having problems passing an exit() status to bourne shell
Date: 1997/01/31 [thread overview]
Message-ID: <32F25E2B.400C@idx.com> (raw)
I am launching a C program from a bourne shell script and trying to exit
the C program with an exit() status so that the bourne script can
interpret the exit status and take the appropriate action. However, it
only seems to work when I a exit(0). If I try to exit with a number
less than or greater than 0 the script interprets it as 255.
The code follows:
$program >/dev/null 2>&1
status="$?"
echo $status 255 is returned on this line.
Any ideas????
Brian Krupski
next reply other threads:[~1997-01-31 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-31 5:00 Brian J. Krupski [this message]
1997-02-01 5:00 ` Having problems passing an exit() status to bourne shell John Hascall
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox