Results 1 to 4 of 4
Not even sure how to ask the question, so here's what I want to do.
1. SSH to a remote host
2. Start a process on the remote host (like ...
- 08-09-2009 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 10
Command Line Session
Not even sure how to ask the question, so here's what I want to do.
1. SSH to a remote host
2. Start a process on the remote host (like an rsync sesson)
3. Close exit ssh on the remote host without terminating the process started in step 2.
4. At some later time ssh back to the remote host and re-connect to the process to monitor the progress.
I know I can do most of this with a cron job writing everything to a log then tail -f on the log, but that's not what I want to do.
Thanks for any assistance.
- 08-09-2009 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Check out GNU Screen. When you ssh into the remote host, you can start a screen session. Once that's running you run whatever commands you want and then disconnect from screen using CTRL+A, CTRL+D. You can then safely log out of your ssh session leaving it running. You can then reattach to the session when you reconnect.
You can do some pretty cool tricks too like naming the screen session or inviting other users in to share it, sort of a multi-user terminal session. Screen should be available in your repositories if it's not already installed.
- 08-09-2009 #3Just Joined!
- Join Date
- Nov 2008
- Posts
- 10
Screen
PERFECT!
Exactly what I was looking for. Many thanks.
- 08-09-2009 #4Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
No problem, it solved a lot of my own dilemmas when I found it


Reply With Quote