10-23-2006
Quote:
Originally Posted by napolayan
BOFH,
if he just wants to compile the errors, wont 'filename 2> errorlog' work? why do we need to use make command? plz explain
As a programmer, I use makefiles to manage all my programs. Since he didn't specify, I used "make" in my example.
As to output, since we don't know for sure what program he's using and which error output he wants to see, redirecting all output to the error file could be productive (warnings are errors after all
). But for any output that's going to just STDERR then yea, your line would work.
Carl
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies
2. Programming
Hello,
i compiled the program xev under HPUX 10.20 and there are a lot of errors like this. Can anybody help me to fix this errors?
make xev
cc -O xev.c -o xev
/usr/ccs/bin/ld: Unsatisfied symbols:
XFree (code)
XKeysymToString (code)
XSelectInput (code)
XOpenDisplay... (1 Reply)
Discussion started by: lan
1 Replies
3. AIX
I recently compile some code in 32 bit mode on a AIX 5.3 server that has its kernal set to 64 bit mode. The compile was successful and the code works great. That being the case I use the model of the successful makefile on some other code but ended up getting errors that looked like this......
... (2 Replies)
Discussion started by: morrisey
2 Replies
4. Programming
I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc
Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008
Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies
5. Solaris
have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build:
./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies
6. Solaris
I'm trying to compile tacacs+-F4.0.4.18 on Solaris 10 (sparc based server). It fails during the "./configure" phase with the following error:
checking whether to use libwrap... yes
configure: error: Could not find libwrap. You must first install tcp_wrappers.
I do a have tcpwrappers... (4 Replies)
Discussion started by: pingmeback
4 Replies
7. UNIX for Dummies Questions & Answers
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies
8. Programming
Hi All,
My test code ldap_test.c can be compiled successfully with gcc2.95.2. But not gcc 4.1.2 in redhat5.5. The command I used and the output are:
#gcc -fPIC -shared -o lib_ldap_rhel.so ldap_test.c
/usr/include/ldap.h:179: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âtypedefâ... (2 Replies)
Discussion started by: rluo
2 Replies
9. Shell Programming and Scripting
Hi for all!
I need for my job one shell script very concrete about connection to oracle databases and writing to text file.
Well I tell you:
1.- I must read a file as parameter from linux interface:
> example.sh fileToRead
2.-I must read line to line in "fileToRead" and take a... (9 Replies)
Discussion started by: wien996
9 Replies
10. Red Hat
I am facing issue related to performance of one customized application running on RHEL 5.9. The application stalls for some unknown reason that I need to track. For that I require some tool or shell scripts that can monitor the CPU usage statistics (what we get in TOP or in more detail by other... (6 Replies)
Discussion started by: Anjan Ganguly
6 Replies
LEARN ABOUT HPUX
annotate-output
ANNOTATE-OUTPUT(1) General Commands Manual ANNOTATE-OUTPUT(1)
NAME
annotate-output - annotate program output with time and stream
SYNOPSIS
annotate-output [options] program [args ...]
DESCRIPTION
annotate-output will execute the specified program, while prepending every line with the current time and O for stdout and E for stderr.
OPTIONS
+FORMAT
Controls the timestamp format, as per date(1). Defaults to "%H:%M:%S".
-h, --help
Display a help message and exit successfully.
EXAMPLE
$ annotate-output make
21:41:21 I: Started make
21:41:21 O: gcc -Wall program.c
21:43:18 E: program.c: Couldn't compile, and took me ages to find out
21:43:19 E: collect2: ld returned 1 exit status
21:43:19 E: make: *** [all] Error 1
21:43:19 I: Finished with exitcode 2
BUGS
Since stdout and stderr are processed in parallel, it can happen that some lines received on stdout will show up before later-printed
stderr lines (and vice-versa).
This is unfortunately very hard to fix with the current annotation strategy. A fix would involve switching to PTRACE'ing the process.
Giving nice a (much) higher priority over the executed program could however cause this behaviour to show up less frequently.
The program does not work as well when the output is not linewise. In particular, when an interactive program asks for input, the question
might not be shown until after you have answered it. This will give the impression that the annotated program has hung, while it has not.
SEE ALSO
date(1)
SUPPORT
This program is community-supported (meaning: you'll need to fix it yourself). Patches are however appreciated, as is any feedback (posi-
tive or negative).
AUTHOR
annotate-output was written by Jeroen van Wolffelaar <jeroen@wolffelaar.nl> This manpage comes under the same copyright as annotate-output
itself, read /usr/bin/annotate-output (or wherever you install it) for the details.
DEBIAN
Debian Utilities ANNOTATE-OUTPUT(1)