結果 : bash capture output of command and exit code