redirection #2

  • Follow


Hello,

Very silly question but it's really bugging me... and I do apologise if it
has been asked before.

Is it possible to redirect output to cut/paste buffer of your terminal
(putty in this case) just like you would to a file with "cat file >
file.txt" for example?!?!

The text is in the buffer when I double click on it and then I can paste it
on my pc by clicking the right mouse button. I assume this buffer is putty's
and is local to my client (my pc) and has nothing to do with the unix box...

Thanks


0
Reply Darko 1/27/2005 12:07:19 PM

Darko <daka@excite.com> wrote:
> Hello,

> Very silly question but it's really bugging me... and I do apologise if it
> has been asked before.

> Is it possible to redirect output to cut/paste buffer of your terminal
> (putty in this case) just like you would to a file with "cat file >
> file.txt" for example?!?!

"redirect"?  No...  The only path from the computer to putty is through
the terminal (presumably via STDOUT/STDERR).  There's no addtional
out-of-band signalling mechanism that you could call upon.

> The text is in the buffer when I double click on it and then I can
> paste it on my pc by clicking the right mouse button. I assume this
> buffer is putty's and is local to my client (my pc) and has nothing to
> do with the unix box...

That is correct.  Since shell redirection deals with files and
filehandles, you'd have to find some way to create a filehandle that was
connected to putty's cut/paste buffer.  Possible, I suppose, but
unlikely to be written.  

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply Darren 1/27/2005 5:25:11 PM


[Darko]:
>
>   Is it possible to redirect output to cut/paste buffer of your
>   terminal (putty in this case) just like you would to a file with
>   "cat file > file.txt" for example?!?!
>   
>   The text is in the buffer when I double click on it and then I can
>   paste it on my pc by clicking the right mouse button. I assume
>   this buffer is putty's and is local to my client (my pc) and has
>   nothing to do with the unix box...

if you were using X, you could use xcb

   http://www.goof.com/pcg/marc/xcb.html

with putty I guess you'll just have to paste into a file manually.
-- 
Kjetil T.
0
Reply Kjetil 1/28/2005 12:12:58 AM

hello

anyway you can enable the putty's log file option, which very likely will 
hold the information you need.
you cam transfer it with plink or ssh to the unix machine after the putty 
session has ended.

robert

0
Reply Robert 1/28/2005 11:54:36 AM

thanks for your help


0
Reply Darko 2/1/2005 2:58:37 PM

2005-01-27, 12:07(-00), Darko:
> Very silly question but it's really bugging me... and I do apologise if it
> has been asked before.
>
> Is it possible to redirect output to cut/paste buffer of your terminal
> (putty in this case) just like you would to a file with "cat file >
> file.txt" for example?!?!
[...]

You could use GNU screen which has its own cut/paste mechanism
that you can manipulate more easily.

But you can't use the mouse in screen (yet) to do the
cut/pasting, even in terminals with mouse tracking support like
putty (the selection is made with the arrow keys).

-- 
St�phane
0
Reply Stephane 2/1/2005 3:05:50 PM

5 Replies
139 Views

(page loaded in 0.118 seconds)

Similiar Articles:













7/23/2012 10:13:06 AM


Reply: