Search this Website

 

Ubuntu

UNIX

return value

Category: UNIX-Unix Beginner

return value

how do i find out the return value of a shell script or program in unix?

is there a command to find that out??


it is available in $? so you can do:
echo $?
immediately after running a command.