Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > The real world > Idle chatter

Reply
 
Thread Tools Display Modes
Old May 4, 2009, 16:08   #1
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Linux question.

It is possible to copy the entire text content of a terminal window to the clipboard?

Or is it possible to re-direct the output of the 'make' command to a text file?

I want to check through the compiler warnings, but it's far too long to manually select the whole output.

****
Hi, I'm the Angband SVN virus. Copy me into your forum posts and get Angband SVN to show up on Google.
__________________
Currently turning (Angband) Japanese.

Last edited by PaulBlay; May 17, 2009 at 19:52.
PaulBlay is offline   Reply With Quote
Old May 4, 2009, 16:51   #2
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by PaulBlay View Post
It is possible to copy the entire text content of a terminal window to the clipboard?

Or is it possible to re-direct the output of the 'make' command to a text file?

I want to check through the compiler warnings, but it's far too long to manually select the whole output.
There is a command called "script". Use it, and everything that is echoed to the terminal is also put into a file called "typescript". That continues indefinitely until you exit with control-D.

Standard output redirection should work as well. I don't know whether compiler warnings are directed to stdout or stderr but you could always redirect them both.
PowerDiver is offline   Reply With Quote
Old May 4, 2009, 16:52   #3
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 39
Posts: 783
pav is on a distinguished road
Send a message via ICQ to pav
make | tee /tmp/file_with_output.txt

__________________
See the elves and everything! http://angband.oook.cz
pav is offline   Reply With Quote
Old May 4, 2009, 16:53   #4
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,947
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by PaulBlay View Post
It is possible to copy the entire text content of a terminal window to the clipboard?

Or is it possible to re-direct the output of the 'make' command to a text file?

I want to check through the compiler warnings, but it's far too long to manually select the whole output.
"make 2&>errors" will redirect all make's output to 'errors'.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old May 4, 2009, 17:42   #5
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by takkaria View Post
"make 2&>errors" will redirect all make's output to 'errors'.
Got a "2 not recognized target". (Or similar) error message.

make >errors
redirect all the output _except_ the error messages. Anyway I got them copied in the end. No doubt it will get smoother with practise.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old May 4, 2009, 21:47   #6
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 8,253
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by PaulBlay View Post
Got a "2 not recognized target". (Or similar) error message.
Different shells handle this differently (end knowledge).
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old May 5, 2009, 04:13   #7
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,698
Donated: $40
Pete Mack is on a distinguished road
On csh/tcsh, you need to use >&1 > make.out. (I don't know if it's possible to redirect stderr only.)

csh is pretty much obsolete anyway. Use bash. Then

make 2> errors will work. make 2>&1 > make.out redirects everything. This is usually what I use.
Pete Mack is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing with Linux PaulBlay Vanilla 5 May 3, 2009 19:38
Compiling in Linux trickypig Vanilla 6 November 16, 2008 15:26
Compiling on Linux... HowTo? MKula Vanilla 22 March 12, 2008 17:40
Angband 3.0.9 under Linux (graphics?) strangeintp Vanilla 4 January 19, 2008 22:44
Sound on Linux with X11 is it available. tuppe666 Vanilla 10 September 13, 2007 16:42


All times are GMT +1. The time now is 10:22.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.