Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2000 15:12:48 +0200
From:      Erik Trulsson <ertr1013@student.csd.uu.se>
To:        "James A Wilde" <james.wilde@tbv.se>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Redirection
Message-ID:  <20000518151248.A21009@student.csd.uu.se>
In-Reply-To: <003e01bfc0c9$11544c80$8c0aa8c0@hk.tbv.se>; from james.wilde@tbv.se on Thu, May 18, 2000 at 03:00:40PM %2B0200
References:  <003e01bfc0c9$11544c80$8c0aa8c0@hk.tbv.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 18, 2000 at 03:00:40PM +0200, James A Wilde wrote:
> A quick clarification first:  Root's default shell is the Bourne shell, sh.
> User's default shell is csh.  And presumably when User su's, his shell
> becomes the Bourne shell.  The machine is running 3.1, btw.  (Does anyone
> know if it is the same on Solaris 7?)
> 
> Almost all I do on the machine has to be done as root, so we are talking
> Bourne shell.  I'd like a simple formula for sending stdout and stderr to a
> file when I run make.  The man page has me totally confused.  In other
> words:
> 
> command [some incantation involving 12&> and a filename, possibly with |]
> 
> which lets me see what's going on on the screen and save the same stuff to a
> file.
> 

You mean something like:

command 2>&1 | tee filename




-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.csd.uu.se



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000518151248.A21009>