screen-users
[Top][All Lists]
Advanced

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

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


From: Kevin Van Workum
Subject: Re: Is it possible to hardcopy the screen's contents to STDOUT?
Date: Mon, 28 Mar 2011 11:10:59 -0400



On Sat, Mar 26, 2011 at 12:51 AM, <address@hidden> 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/')


 address@hidden

--
http://www.fastmail.fm - mmm... Fastmail...


_______________________________________________
screen-users mailing list
address@hidden
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

reply via email to

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