I'm new to ssh and tmux. I want to run a rake task on a remote server via ssh but I want to shutdown my computer and want the task continue running on the server. So I discovered tmux with seems to do that, but last night I got an "write error, broken pipe" after i reattached the tmux session. My internet home internet is very instable, so i may got a new IP, is that a problem? So, how can I prevent this?
migrated from stackoverflow.com Oct 21 '12 at 15:10
This question came from our site for professional and enthusiast programmers.
As I understand you, you want to leave a program running on a server and the program should run within tmux. To make this work you have to run tmux on the server.
To reattach you can do:
In one line
If you add
Note that you need to double quote the command if it contains whitespace.