Re: Screen question
Gerhard Siegesmund <[email protected]>
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <[email protected]> |
> I am trying to use 'screen -S <session> -X hardcopy <filename>' to > capture a detached screen's current output to a file. > The detached screen sessions were started with 'screen -m -d -S > <session> -h 1000' by a startup script. You started it without a command. So a shell should be started on window 0. Try using the following command to get the hardcopy: screen -S <session> -p 0 -X hardcopy <filename> -p tells screen which window to use. I think if you start screen and detach it at the same time no window is selected. If you attach a shell to the screen you do some sort of selection and then naturally the command works. I think, this is a feature. Specially useful if you run several commands under the same screen in detached mode. You can make hardcopy from every command under that screen if you like. For more information read the fine manual... :-) -- cu --== Jerri ==-- Homepage: http://www.jerri.de/ ICQ: 54160208 Public PGP Key: http://www.jerri.de/jerris_public_key.asc
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/4GvqA5mPer8b7IwRAirSAJ4xWb1y6V4PsK0Akx7Yi5QprhgfWACfQTVn UsZ0RLgl2aVF/Unr8QIn/GA= =KRel -----END PGP SIGNATURE-----