I have Windows Subsystem for Linux and I would like to be able to keep some commands running even if my computer is sleeping. I have been told that one way is to work in a remote terminal. I have been told that screen does the work. But I was wondering wether Terminator was able to do it as well, as I know this tool better.
Use screen or tmux on the remote computer. I prefer tmux for the improved scripting abilities.
- Connect to the remote computer using whatever program you like that provides terminal emulation.
screen. This will start a new shell in a "session"
- In a tmux session if you want to send ctrl-b to a program then type it twice.
- In a screen session if you want to send ctrl-a to a program then type it twice.
- run your program in this new shell.
- "detach" the tmux or screen session. For tmux type ctrl-b d, for screen type ctrl-a d
- logout from the remote machine and put your local machine to sleep.
- Power up you local machine and connect to your remote machine again.
- attach to the session. For tmux run
tmux -a, for screen run
- detach and reattach as often as you want. eventually stop your long running program and exit the shell. This will end the tmux/screen session.
Both tmux and screen can do a lot more, but this will get you started.