I'm automating a test using crash package. Is there some thing like
$?, which can be used to check if the previous command executed successfully or not inside a crash shell?
For example, when command:
crash> bt -a
Is executed, how do I know if it was successful or not? The only solution in my mind is greping through the results, but it's not reliable when the environment changes.
This is what i get when I try
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#
$? always appears to be 0.
I already asked this question on superuser a few days back, but no help from there. Any help would be appreciated.