Spawn a shell process with the provided command line. Returns the Pexpect object.
(shell_cmd)
| 202 | |
| 203 | |
| 204 | def spawn_shell(shell_cmd): |
| 205 | """Spawn a shell process with the provided command line. Returns the Pexpect object.""" |
| 206 | return pexpect.spawn(shell_cmd[0], shell_cmd[1:], env=build_shell_env()) |
| 207 | |
| 208 | |
| 209 | def get_open_sessions_metric(vector): |