Re: how to let the remote server continuously run while I shut down local telnet client?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I hereby accuse Joe Beanfish of stating:

gino wrote:
I wont' be able to resume to that particular session? I really want to
see the results/graphs interactively...



I think "screen" will let you detach and later reattach from somewhere
else.

This is exactly what you want. Install screen, then when you want to start a
resumeable session, type "screen" first to enter screen's virtual terminal.
Then use is as if you were using your normal command line.

You can "detach" the screen session at any time by pressing ^A (the screen
escape key) and then D (for Detach). Screen and any processes started
within it continue running in the background. You can log out and they will
keep going.

When you want to reattach the screen session later, simply
execute "screen -r". Much like the fg/bg commands, you can have multiple
sessions going at once, so -r takes a numeric argument indicating the
session number.

Since a screen session can only be attached in one place at a time, screen
also allows you to forcibly detach a session of yours that is running on
some other terminal by using "screen -d". This is useful for resuming your
session if your connection drops before you have a chance to gracefully
detach your session.

Two things screen cannot do:
- sessions cannot persist across reboots (it's not a virtual machine or
anything!)
- cannot detach/reattach X windows

So if you're doing this in a GUI, screen is not going to work for you, but
if this is a CLI process, it's exactly what you want.

Note that screen also does nifty things like splitting terminals into
Emacs-esque "windows" and such. Read its man page.

- --
S. Tyler McHenry

http://www.nerdland.net/~tyler/info/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFEpWwFyhIpIIGf1i4RAgq1AJ9w02ixrtp4b3w9vQcQKdxeQfxm0QCgjCJs
7f1bDOx6NBy4uk9NKBrE7hg=
=zDaJ
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Re: Detaching and reattaching a process to different terminals?
    ... Detaching and reattaching a process to different terminals? ... I use two screens on my laptop. ... >> Is there any way to detach the pid from that terminal and reattach it to ...
    (Debian-User)
  • Re: GNU Screen on OpenServer 5.0.6
    ... > I have my desktop pc connected to the LAN, and open a telnet session ... > to the target server via the termlite application. ... While in this state it is possible to force a detach ...
    (comp.unix.sco.misc)
  • Re: how to let the remote server continuously run while I shut down local telnet client?
    ... I think "screen" will let you detach and later reattach from somewhere ... You can "detach" the screen session at any time by pressing ^A (the screen ... Emacs-esque "windows" and such. ...
    (comp.os.linux.misc)
  • Re: Need help with GDB
    ... > The server the app is running on is a remote web server, ... Screen session constists of one or more virtual terminals. ... can also 'detach' from the session, ... background, and 'retach' to it later, brining the session to ...
    (comp.os.linux.development.apps)
  • Re: buildworld via ssh
    ... > I am doing a buildworldvia ssh to a remote location. ... > pipe the output to a logfile. ... Long story short, my session was terminated ... This would allow you to detach from a running ...
    (freebsd-questions)