LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-25-2004, 04:26 PM   #1
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
how to output stdout to a file


ok, well iv been trying to get something to compile but it just givs like 1000 erors and im positive its the first error that caused everythign to error out, only 1 problem, i cant get "make" to redirect its output to a file, i used "make -n filename" but it doesent include the errors in the file, wich is realy what i only want,

so my question is, is there a program that can save the information sent to stdout to a file?
 
Old 02-25-2004, 04:31 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Errors don't go to stdout, they usually go to stderr instead. You can send all errors to a file using
make 2> filename
 
Old 02-25-2004, 04:52 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
ah thx, that did the trick, but just outa curisoity what does the 2 stand for?
 
Old 02-25-2004, 05:02 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
2 - stderr
1 - stdout
0 - stdin
 
Old 02-25-2004, 05:08 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
ah ic, thx again Mara
 
  


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
Redirecting to file and stdout Quantum0726 Programming 3 11-14-2005 08:35 PM
stdout to file Machiaveli Programming 8 09-04-2005 08:53 AM
stdout & stderror output nevx Linux - Newbie 1 05-03-2005 06:56 AM
redirecting stdout and stderr to a file Avatar33 Programming 4 03-12-2005 07:55 AM
capturing STDOUT to file. tn1681 Programming 5 11-01-2002 11:51 AM


All times are GMT -5. The time now is 03:46 AM.

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