Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-19-2004, 08:13 AM   #1
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Rep: Reputation: 15
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.

Old 02-19-2004, 11:24 AM   #2
Registered: Sep 2003
Location: Arizona
Distribution: Kubuntu 8.04
Posts: 202

Rep: Reputation: 30
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.
Old 02-23-2004, 02:05 AM   #3
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Original Poster
Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
output from ls command Grafbak Programming 5 08-07-2005 05:35 AM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Command to put texfile in the clipboard? enemorales Linux - Software 0 02-09-2005 03:21 AM
' last -i ' command output praveenv Linux - Newbie 1 08-23-2004 02:14 PM
last -i command output praveenv Linux - Networking 2 08-18-2004 12:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration