On Thu, Dec 16, 1999 at 03:09:44PM +1100, Gregg wrote:
> but how (the hell) do I send the gcc error and warning messages to a
> file?!
This is a shell function, so you were looking in the wrong place ...
The bash man page explains redirection in great detail, but in simple
terms what you need to do is:
[johnc@dropbear ~/tmp]$ gcc -c temp.c &> gcc.log
[johnc@dropbear ~/tmp]$ gcc -c temp.c > gcc.log 2>&1
These both redirect both stdout and stderr to gcc.log. This:
[johnc@dropbear ~/tmp]$ gcc -c temp.c 2> gcc.log
redirects just stderr (file descriptor 2).
Cheers,
John
--
whois [EMAIL PROTECTED]
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text