LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-09-2010, 03:53 PM   #1
T. Jump
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Rep: Reputation: 0
message in Terminal after redirecting output and build completes?


I'm not sure about the following behavior so thought I would put it out to see if there is an error I need to resolve, or simply a process that I need explained.


I'm also not sure if this is an Ubuntu issue, a Linux issue, or other... but here goes.


I ran my "make build" in two different ways; one with just "make build" and one with "make build > output" (so I could review the full script).


With just "make build" the process finished and returned to the command prompt.


With "make build > output", after the process had finished (script in output document identical to what was in the terminal with "make build") a new set of data was displayed in the terminal (see below).


With the other examples of using "make build > output" the times it would parse something back to the terminal window was when there was an error. As I fixed the errors these breaks back to the terminal window would stop. So I'm wondering if this indicates a new error, but because the "make build" now completes successfully (at least it appears to), I'm wondering if this data in the terminal window is just a behavior related to redirecting the output script using the ">" process and something to do with returning to the terminal once a process completes.


I would appreciate any explanation of what is happening here.


T. Jump






srv1bf537@ubuntu:~/srv1-linux-read-only$ make build > output6
1562 entries written to /home/srv1bf537/srv1-linux-read-only/uClinux/staging/usr/share/terminfo
make[5]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make[5]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make[5]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make[5]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
Entries that will be compiled:
1:linux
2:vt100
3:vt220
4term
4 entries written to /home/srv1bf537/srv1-linux-read-only/uClinux/romfs/usr/share/terminfo
Guessed module directory as /home/srv1bf537/srv1-linux-read-only/uClinux/romfs/lib/modules/2.6.28.10-ADI-2009R1.1-svn26
srv1bf537@ubuntu:~/srv1-linux-read-only$
 
Old 10-09-2010, 04:16 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
With "make build > output" you are redirecting Standard Out (STDOUT) to the file "output". However, you did not specify to redirect Standard Error (STDERR) anywhere, so it still goes to your terminal. The messages aren't new - they will be in the output along with the rest of the unimportant build output when you do no redirection.
 
Old 10-09-2010, 04:46 PM   #3
T. Jump
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks. That gets me through part of my understanding. Good to know that without redirect of errors they display to the terminal window. Now I need to understand the jobserver warning.
 
Old 10-10-2010, 10:38 AM   #4
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 85

Rep: Reputation: 7
When I build a package, I want a log so I can check for errors once the process has finished. I use this:

Code:
./<buildscript> 2>&1 | tee <buildscript.log>
Where <buildscript> is the name of the script I'm using for the package build. 2>&1 combines standard error output with normal console output, which is piped to the tee utility (which should be found in pretty much every Linux installation). That way, I see the output on screen, but also have a log file to examine later if I need to.

HPTH.

Paul.
 
Old 10-10-2010, 11:57 AM   #5
T. Jump
LQ Newbie
 
Registered: Oct 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks Paul. Your description of seeing what is happening and haveing a log to refer back to is exactly what I'm trying to do. This is very helpful.

Cheers,
T. Jump
 
  


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
awk: how can I print out a message to the screen when redirecting the output to file. quanba Programming 8 07-13-2015 02:54 AM
Problem in redirecting the output of command in gnome-terminal satya_seth Linux - Newbie 1 05-23-2009 07:05 AM
A little help with redirecting output tybalt Linux - Newbie 1 08-04-2007 11:08 PM
redirecting output using > cmk77 Slackware 8 11-10-2006 03:08 AM
Terminal window closes when task completes JohnKFT Slackware 2 12-21-2004 12:07 AM


All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration