LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 02-19-2004, 08:13 AM   #1
sami
Member
 
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.

Thanks
 
Old 02-19-2004, 11:24 AM   #2
Rick485
Member
 
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
sami
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 10:52 PM.

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