View previous topic :: View next topic |
Author |
Message |
nusch Tux's lil' helper
Joined: 19 May 2007 Posts: 115 Location: Katowice(Poland)
|
Posted: Sat Jun 09, 2007 3:43 pm Post subject: Copying text from "dynamic" console [SOLVED] |
|
|
Sometimes I need to copy something from console(yakuake), when running tools like mtr or aircrack-ng which are still refreshing their "console text gui" so I can't even select it. Middle mouse button to paste somewhere else doesn't work.
Is there a way to copy it or freeze text output from mtr, aircrack for a moment?
Last edited by nusch on Sun Jun 10, 2007 9:00 am; edited 1 time in total |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Sat Jun 09, 2007 8:14 pm Post subject: |
|
|
Well, don't run a gui tool from a console without backgrounding it. Or just use a mini-cli tool, like alt+F2 in KDE. What output specifically are you trying to get? What is printing it and where is it printed to? _________________ Thomas S. Howard |
|
Back to top |
|
|
nusch Tux's lil' helper
Joined: 19 May 2007 Posts: 115 Location: Katowice(Poland)
|
Posted: Sat Jun 09, 2007 9:52 pm Post subject: |
|
|
I putted gui in ""
I want to capture the text...
For example if you download something with wget it still refreshing the progress and speed of download so you can't select anything because refreshing. In wget you can get it by selecting with mouse quicker that the refresh interval, but in aircrack it's imposible.. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21724
|
Posted: Sat Jun 09, 2007 11:04 pm Post subject: |
|
|
If it is important enough to save, perhaps you should save it to a file instead of trying to extract snippets? If you want to see it live as well, use tee from sys-apps/coreutils. Invocation would be: aircrack-ng $AIRCRACK_OPTIONS | tee /tmp/aircrack.log. Tee will copy stdin to stdout and also save stdin to any files named on the command line. You can then access /tmp/aircrack.log at your leisure to extract the text.
Another possibility would be to use your terminal's flow control facilities to temporarily halt output so that you can select the text you want. This has the downside that you may cause the client application to block if you leave output paused for too long and the client is producing a large volume of data. |
|
Back to top |
|
|
nusch Tux's lil' helper
Joined: 19 May 2007 Posts: 115 Location: Katowice(Poland)
|
Posted: Sun Jun 10, 2007 9:00 am Post subject: |
|
|
OK tee does the work |
|
Back to top |
|
|
|