# client_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L499
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-client-c-client_exec/

```c
static void client_exec(const char *, const char *)
```

## Parameters

- `shell` (`const char *`)
- `shellcmd` (`const char *`)

## Called by

- [`client_dispatch_wait`](/en/tmux/latest/reference/c-function-client-c-client_dispatch_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L688)
- [`client_main`](/en/tmux/latest/reference/c-function-client_main/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L407)

## Calls

- [`fatal`](/en/tmux/latest/reference/c-function-fatal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L515)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L503)
- [`proc_clear_signals`](/en/tmux/latest/reference/c-function-proc_clear_signals/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L507)
- [`setblocking`](/en/tmux/latest/reference/c-function-setblocking/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/client.c#L509)

## Other function references

- [`shell_argv0`](/en/tmux/latest/reference/c-function-shell_argv0/) (function)

## Referenced declarations

- [`client_flags`](/en/tmux/latest/reference/c-variable-client-c-client_flags/) (attribute)
- [`CLIENT_LOGIN`](/en/tmux/latest/reference/c-define-tmux-h-client_login/) (constant)
- [`client_proc`](/en/tmux/latest/reference/c-variable-client-c-client_proc/) (attribute)
