On Sat, Mar 26, 2011 at 12:51 AM, <blackc...@speedpost.net> 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/') > blackc...@speedpost.net > > -- > http://www.fastmail.fm - mmm... Fastmail... > > > _______________________________________________ > screen-users mailing list > screen-users@gnu.org > 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@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users