Hands-on task
Read the pane output
Create a background tmux session calc, use send-keys to make it multiply the two numbers from /root/factors.txt, then capture the pane contents and write the resulting number to the file /root/result.txt. You must read the result from the tmux pane, not compute it some other way.
- tmux
- capture-pane
- send-keys
- escaping
- grep