Hans Updyke wrote:
> Alan Secker wrote:
>
>>I tried Patrick Mackinley's routines but got compile errors during
>>'Make' but couldn't identify whether there was a log file in which the
>>errors could be seen and identified.
>
>
> Create a logfile of those error messages by redirecting STDERR to a
> file. Here's how it would work feeding a bogus file name to the ls
> command:
>
> [hans@packbell hans]$ ls xjc
> ls: xjc: No such file or directory
> [hans@packbell hans]$ ls xjc 2> logfile.txt
> [hans@packbell hans]$ cat logfile.txt
> ls: xjc: No such file or directory
> [hans@packbell hans]$
>
> So try something like:
>
> make 2> logfile.txt
>
> If you need all the messages (not just the errors), you can also
> redirect STDOUT to the same file:
>
> make 2> logfile.txt 1>&2
>
> If you want to view the messages at the same time you're collecting them
> in a file, you can use the tee command. I think this one would do it:
>
> make 2>&1 | tee logfile.txt
>
> Look at "info tee" for the full story.
>
> Hans
Thanks. I'll give it a try.
Alan