Re: How to log while launching screen

Michael Parson <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Tue, 24 May 2011, Joy wrote:

> Hi,
>
> I'm using screen as serial console terminal. The command I've used is
>
> /usr/bin/screen -h 65536 /dev/cu.usbserial-00002026C 115200
>
> It works fine, but I want to capture all I've typed and outputs from it into 
> a file.
>
> It looks -L or -l option would make it, but it doesn't seem to work for me.
>
> I'm a learning user for unix/linux as well, so if you instruct me how I could 
> capture the outputs (especially, automatically) from screen it, it would be 
> appreciated. Actually, I'm using Mac OS X 10.6.

In your .screenrc


# begin
screen 0
 	log
# end

Now, when you start screen, screen 0 will get logged to $HOME/screenlog.0


-- 
Michael Parson
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.