In a nutshell,
screen creates virtual terminals, within which programs can be run and behave as if they are attached to a physical terminal.
screen is also a program for monitoring these virtual terminals, viewing their output on a physical terminal, and watching the physical terminal for commands to intercept.
When you launch
screen, you're launching the viewing program. Depending on command line options, it can either (re)attach to existing virtual terminals, or launch a copy of itself as a daemon and then request and attach to new virtual terminals from the daemon copy.
It is this "viewing program" type of
screen instance that you are interacting with over your VPN session.
When a "viewing program" instance of
screen ends, whether by the internal detach command (^A-d by default), or by dying because the telnet session it was using for output went south when the VPN dropped, the virtual terminals being managed by a "daemon" instance couldn't care less. As far as they are concerned, nothing happened.
The big payoff for this is that you can start a new "viewing program" instance and tell it to reconnect to the session (one "daemon" process's virtual terminals) you were working with.
This is probably as clear as mud now, but you can look at the actual manual at
the screen homepage for (much) more information. I don't recall if there's a direct link to the manual, but both PostScript and info versions can be generated from the source.
- Rod
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+
Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.