# LibTmux::CommandResult

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/CommandResult.pm#L1
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-commandresult/

```
package LibTmux::CommandResult;
```

Completed or partial subprocess outcome


## OWNERSHIP

Readers are local and do not mutate the result or perform I/O. A lifecycle exception may expose a bounded partial result; it does not imply rollback or command completion. See [`"run" in LibTmux::Transport`](/en/perl/latest/reference/libtmux-transport-run/) and [`LibTmux::X`](/en/perl/latest/reference/libtmux-x/).



## Members

### Other members

- [`exit_code`](/en/perl/latest/reference/libtmux-commandresult-exit_code/) (method): Return an exit code or undef when no child status is known.
- [`raw_status`](/en/perl/latest/reference/libtmux-commandresult-raw_status/) (method): Return the POSIX wait status or undef when unavailable.
- [`signal`](/en/perl/latest/reference/libtmux-commandresult-signal/) (method): Return a terminating signal number, zero for ordinary exit, or undef for unknown status.
- [`stderr`](/en/perl/latest/reference/libtmux-commandresult-stderr/) (method): Return separately retained stderr octets, possibly empty.
- [`stdout`](/en/perl/latest/reference/libtmux-commandresult-stdout/) (method): Return retained stdout octets, possibly empty. No text decoding occurs.
- [`success`](/en/perl/latest/reference/libtmux-commandresult-success/) (method): Return true only when known status proves ordinary exit zero. Unknown status is never success.
