views:

706

answers:

5

I have a long URL on a web page in Windows that I need to copy into bash shell in Unix. Is there a way to do this without retyping the URL?

+2  A: 

You could use Synergy to share your clipboard between the two machines.

RichieHindle
I love synergy... Don't know how I'd get through the day without it.
dicroce
+4  A: 

If you connect to unix using putty, copy the text from the browser, then right click on the putty window to paste.

rpSetzer
A: 

If you are on Windows, and you have a Putty session into your unix box, then you can copy the URL to the clipboard in Windows, and then right-click in the putty window. This will do a paste. You could do that paste into a vi session and save the url.

Another option is using the write command. That is, open a terminal on the unix box, and then use Putty to SSH into that same box. do a write tonge (assuming 'tonge' is your user name), paste the URL, and press enter. The recipient (that is, you, with a bash terminal open) will receive that URL.

rascher
+1  A: 

I routinely run x2vnc from a Linux box, and have a VNC server (RealVNC) running on a Windows box. This lets me share one mouse and keyboard across the two machines, and the clipboard is also shared across the machines.

mmorrisson
A: 

As an alternative to right clicking in the putty window, you can also paste by pressing Shift+Insert in the putty window.

(I learned this from the FAQ at the putty website)