[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Log file creation
From: |
Lee Forrest |
Subject: |
Re: Log file creation |
Date: |
Fri, 15 Dec 2006 23:13:18 -0800 |
User-agent: |
Mutt/1.3.24i |
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" <visweshram@gmail.com> 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