get retval when sending shell commands