I am automating a test using crash package.
is there some thing like $? in bash shell, which can be used to check if previous command is executed success fully or not.
eg : when command
crash> bt -a
is executed, how to know if it was successfull or not.
only solution in my mind is greping through the result
But its not reliable when the enviornmentchanges.
this is what i get when I try echo $?
crash> bt asd bt: invalid task or pid value: asd crash> $? crash: command not found: $? crash> echo $? 0 crash> crash> q root@at0012-ubuntu:~/crashKernel#