01-26-07 06:34 AM
Thanks for the pointer.
However, my program has to run in the background, i.e. "my_c_program &"
appear in the shell script, otherwise other starting scripts following
my program won't run. And I found the echo line will not come out when
my program exits. Any suggestion for such case?
On Jan 25, 10:41 pm, Ralf Fassel <ralf...@gmx.de> wrote:
> * "banyan" <bany...@yahoo.com.sg>
> | However, I don't know how to catch an exist status of a C program in
> | a shell script.
>
> #!/bin/sh
> some_command
> echo "The exit status of some_command is $?"
> # End of file
>
> HTH
> R'
[ Post a follow-up to this message ]
|