Hands-on task
Send a command into a session
A demo web server has to survive a dropped SSH connection, so it's started inside tmux. Create a background tmux session w and, without attaching to it, make its shell run the command python3 -m http.server 80 --directory /srv/demo — that is, "type" the command into the session from the outside. The server must run inside the session w itself. See the result in the Site tab above the terminal.
- tmux
- send-keys
- automation
- background sessions