LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How would I transfer the output of a command or a program to here, eliminating typin (https://www.linuxquestions.org/questions/linux-newbie-8/how-would-i-transfer-the-output-of-a-command-or-a-program-to-here-eliminating-typin-461543/)

royeo 07-06-2006 12:43 PM

How would I transfer the output of a command or a program to here, eliminating typin
 
How would I transfer the output of a command or program or whatever to here, so I don't have to type it? Some output is not copiable (I know this isn't a word)to the clipboard.

Thanks,

royeo

nadroj 07-06-2006 12:47 PM

use the redirection symbol (>) to save the output to a file, ie: ls > lsOutputFile.txt
use the pipe symbol (|) to make the output of one command the input of another, ie: dmesg | less

Tinkster 07-06-2006 12:54 PM

Quote:

Originally Posted by royeo
How would I transfer the output of a command or program or whatever to here, so I don't have to type it? Some output is not copiable (I know this isn't a word)to the clipboard.

Thanks,

royeo

Have you tried the highlight and middle-click method? It avoids
application (or DE) clipboards and uses X primitives.


Cheers,
Tink

royeo 07-07-2006 06:51 PM

Output to here
 
I don't have a 3 button mouse.

Thank you,

Roy O'Neill

pete1234 07-07-2006 07:07 PM

You can emulate a third button by clicking both buttons simultaneously.

Tinkster 07-07-2006 07:29 PM

You don't need one, and you're welcome. X lets you emulate a middle-
button by clicking BOTH buttons at the same time.


Cheers,
Tink

wilby 07-07-2006 08:13 PM

I think nadroj has the best solution. Also in case your interested Slackbook is a great source of basics. It's well put together and easy to read. If your interested you can find it here: http://www.slackbook.org

Tinkster 07-07-2006 08:36 PM

Quote:

Originally Posted by wilby
I think nadroj has the best solution. Also in case your interested Slackbook is a great source of basics. It's well put together and easy to read. If your interested you can find it here: http://www.slackbook.org

You got my attention: how will redirection to a file get his
information into the browser easily?
Like in
a) redirect
b) open file in kwrite
c) highlight desired text
d) copy text
e) hope that kwrite and browser share the same clipboard?


Cheers,
Tink

tgo 07-07-2006 08:45 PM

you could easily make a perl script to send your cookie and hte post topic .. something like

dmesg | perl postit.pl "Help with device"

and have postit.pl do something like while(<STDIN>) { $message .= $_; } and then post the message ( hopefully the mods dont mind this as it could cause some flooding ).

wilby 07-07-2006 09:09 PM

I wasn't trying be insulting Tinkster I simply meant that "the basics" are often the best solution.

I know it would be a two step solution to redirect and then copy and paste from an X editor but there's not much to learn from point and click and there's a lot of satisfaction in using the command line.

So it was simply a personal preference. I try to use command line as much as possible.


All times are GMT -5. The time now is 05:25 PM.