RE: Screen question
"Newpol, Richard" <[email protected]>
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <313680C9A886D511A06000204840E1CF067D7163@whq-msgusr-02.pit.comms.marconi.com> |
Gerhard, You're the man! I guess I should have been more accurate; the detached screen sessions were actually started with 'screen -m -d -S <session> -h 1000 <myprogram>' by a startup script. However, I think what you said below still makes sense, and anyway, it works! <Flipping back through the manual in puzzlement...> thanks, rsn -----Original Message----- From: Gerhard Siegesmund [mailto:[email protected]] Sent: Wednesday, December 17, 2003 9:45 AM To: '[email protected]' Subject: Re: Screen question > 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 Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/gnu-screen/ To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/