LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command output to clipboard (https://www.linuxquestions.org/questions/linux-newbie-8/command-output-to-clipboard-147982/)

sami 02-19-2004 08:13 AM

Command output to clipboard
 
I want to redirect the shell command output to clipboard (just like outputting to ordinary files). How to do this in shell.

wats the clipboard file name?

Any ideas.

Thanks

Rick485 02-19-2004 11:24 AM

I do not know how to redirect the output that way. I usually just use my wheel mouse to cut and past what I need from one place to another. That will work in either the text mode or the graphical mode. Lets say that I have run a command under the bash shell in a terminal window. I left-click and drag to highlight the text. I then go to where I want to past the information and press the middle wheel of my mouse. I do not rotate the wheel, I actually click the middle wheel. Many people do not realize that the middle wheel can be clicked.

The tricky part is to not accidently highlight something else before pasting the results. That part takes a little practice. If you do not have a wheel mouse Linux can be configured so that pressing both buttons at once will be the same thing as clicking the wheel.

sami 02-23-2004 02:05 AM

That useful when u wanna manually doing the stuff. I actually want to do it from my code, and want this behaviour to be automated. Putting output to clipboard is the only solution i prefer.


All times are GMT -5. The time now is 03:43 PM.