Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copying text from "dynamic" console [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nusch
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2007
Posts: 115
Location: Katowice(Poland)

PostPosted: Sat Jun 09, 2007 3:43 pm    Post subject: Copying text from "dynamic" console [SOLVED] Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Sat Jun 09, 2007 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
nusch
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2007
Posts: 115
Location: Katowice(Poland)

PostPosted: Sat Jun 09, 2007 9:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21724

PostPosted: Sat Jun 09, 2007 11:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
nusch
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2007
Posts: 115
Location: Katowice(Poland)

PostPosted: Sun Jun 10, 2007 9:00 am    Post subject: Reply with quote

OK tee does the work
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum