Re: Log file creation

Lee Forrest <[email protected]>
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
On Fri, Dec 15, 2006 at 08:52:18AM +0100, Ralf Wildenhues wrote:
> * Henrik Carlqvist wrote on Fri, Dec 15, 2006 at 08:35:49AM CET:
> > "ajlu" <[email protected]> wrote:
> > > 
> > > Let me know how to create a log file for make.( ie., I have a project
> > > with make file I wish to create a log file for this make file).
> > 
> > This solution is not really specific for make:
> > 
> > make |& tee myfile.log
> 
> It's specific to your shell though.  The following should work for all
> Bourne compatible shells:
>   make 2>&1 | tee myfile.log
> 

He could also run script.

Enter script -a logfile

and then run make (or whatever), and when done do Ctrl-d (^D) to
terminate script.

I like your idea better, though.

Lee
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.