[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: logging within shell scripts



That appears to be EXACTLY what I'm looking for... Thanx much!

On Tue, Sep 14, 1999 at 10:41:10AM +0200, Quant-X UNIX and Linux Support wrote:
> Not sure if I understood your question.  Anyway, if you want to redirect
> a particular file in a shell you don't have to know where it's been
> directed to at a certain point.  For example, you can do something like
> this:
> 
> exec 1>log 2>log.err
> ...
> do something
> (everything going to stdin is been redired to file "log"
> and stderr to "log.err")
> ...
> exec 1>log.a 2>log.a.err
> ...
> 
> I hope this helps.


Reply to: