Newbie question about debugging and troubleshooting
Scott Raynel
scottraynel at gmail.com
Wed May 10 22:36:13 BST 2006
On 5/11/06, john e <john.godzero at gmail.com> wrote:
> I recently read about strace, a nice utility to get all sorts of good
> info from a repeatable bug ( eg: strace /bin/buggy_program )
> lsof has helped in some cases. (eg: lsof /home)
>
> Are there anymore the devs would recommend, I'd especially like to
> know on that'll read the exit code from the last progam ran.
> eg:
> bash> ls
> error ... crash bang boom
> bash> read_last_error
> last exit code was 3
> bash>_
>
echo $?
Will will print the exit status of the last program run, e.g.
bash> ls
foo bar
bash> echo $?
0
Cheers,
--
Scott Raynel
WAND Network Research Group
Department of Computer Science
University of Waikato
New Zealand
More information about the ubuntu-devel
mailing list