# process_get

Get a single process matching pattern. Errors if 0 or multiple match.

```rhai
process_get(pattern: &str) -> ProcessInfo
```

## Examples

```rhai
let proc = process_get("nginx: master");
print(`Nginx PID: ${proc.pid}`);
```

```rhai
let proc = process_get("myapp");
print(`Memory: ${proc.memory}`);
```
