# LibTmux::Transport::run

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Transport.pm#L100
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-transport-run/

```
sub run($class, %args)
```

`run(argv => [...], stdin => $octets, timeout => $seconds, max_output => $bytes, cancel_fh => $handle)` returns a [`LibTmux::CommandResult`](/en/perl/latest/reference/libtmux-commandresult/). Stdout/stderr are separate octet strings. Nonzero exits are results; spawn, timeout, cancellation, output limits, and supervision failures throw [`LibTmux::X`](/en/perl/latest/reference/libtmux-x/) exceptions. `timeout` bounds one command's execution loop, excluding supervisor setup, async queue waiting, and separate cleanup time.

## Methods

## Parameters

- `args`
