screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get a windowlist to STDOUT?


From: Aaron Griffin
Subject: Re: How do I get a windowlist to STDOUT?
Date: Mon, 9 Jan 2006 10:17:58 -0600

On 1/9/06, Michael Schroeder
<address@hidden> wrote:
> On Tue, Jan 03, 2006 at 11:28:26AM -0600, Aaron Griffin wrote:
> > On 1/3/06, Robert Blackwell <address@hidden> wrote:
> > > I have been digging around to find a nice way to output the windowlist to
> > > STDOUT but have not seen an easy solution.
> > >
> > > I would like to be able to do something like this
> > >
> > > screen -X windowlist > windows.txt
> >
> > I've been looking for something similar with the paste command (if
> > that's the right name) - so "screen -X paste" will dump the current
> > copy buffer.  I don't think any of the commands actually output to
> > stdout when run from the command line.  Might be a nice thing to hack
> > in though.
>
> You can use 'screen -X writebuf <filename>' to dump the copy
> buffer into a file. If you need stdout dump the content into a
> tempfile and write the tempfile to stdout.

Yeah, I did do that (and am doing that), but it's much more elegant to
do "screen -X windowlist | grep FOO" than to use a tempfile...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]