Re: Is it possible to hardcopy the screen's contents to STDOUT?

Kevin Van Workum <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Sat, Mar 26, 2011 at 12:51 AM, <blackcode-yMULe1UMIukeIZ0/[email protected]> wrote:

> I tried these commands but they didn't print anything.
>
> screen -x lftp -X hardcopy /dev/fd/1
> screen -x lftp -X hardcopy /dev/stdout
>
> Isn't this supposed to print to stdout? It works with other applications
> so why not with screen?
> --
>

I don't think the 'hardcopy' command takes any arguments:

      C-a h       (hardcopy)    Write a hardcopy of the current window to
the  file
                                 "hardcopy.n".


This should do what your trying to do.

screen -x lftp -X hardcopy; cat hardcopy.$(screen -x lftp -Q number | sed
's/\([0-9]\).*/\1/')


>  blackcode-yMULe1UMIukeIZ0/[email protected]
>
> --
> http://www.fastmail.fm - mmm... Fastmail...
>
>
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> http://lists.gnu.org/mailman/listinfo/screen-users
>



-- 
Kevin Van Workum, PhD
Sabalcore Computing Inc.
Run your code on 500 processors.
Sign up for a free trial account.
www.sabalcore.com
877-492-8027 ext. 11

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users
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.