<quote who="henry"> > Sometimes I make Makefile ,I get lots of error messages so that I cant > look them in time. > I try to "make > tmp.log" , but it fail (I cant dump those error message > into tmp.log). > Could someone show a good solution ? >
The reason for this is that when programs are started, they have 2 output streams attached, called standard output and standard error (STDOUT and STDERR). When make prints output, it does so to the standard error stream, whereas the redirect command you are using redirects only standard output. The way around this depends on the shell you are using. In bash, which I use at home, I would do make &> tmp.log This command tells bash to redirect both standard output and standard error to the file. More information on this can be found in 'man bash', or in the manual page for your favourite shell. You could also do make 2> tmp.log to just save standard error to the file. Cheers, J. -- Jan Schmidt [EMAIL PROTECTED] "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Unknown -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
