[CentOS] Getting the return value of the last command run