From owner-freebsd-questions Wed Sep 10 14:53:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA29998 for questions-outgoing; Wed, 10 Sep 1997 14:53:37 -0700 (PDT) Received: from andrsn.stanford.edu (root@andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA29992 for ; Wed, 10 Sep 1997 14:53:32 -0700 (PDT) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.8.7/8.6.12) with SMTP id OAA00441; Wed, 10 Sep 1997 14:51:18 -0700 (PDT) Date: Wed, 10 Sep 1997 14:51:18 -0700 (PDT) From: Annelise Anderson To: Greg Pavelcak cc: Martijn Koster , questions@FreeBSD.ORG Subject: Re: Redirecting "make world" Output In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 10 Sep 1997, Greg Pavelcak wrote: > On Wed, 10 Sep 1997, Martijn Koster wrote: > > > On Wed, Sep 10, 1997 at 07:37:46AM -0400, Greg Pavelcak wrote: > > > Hi, > > > > > > I believe the upgrade tutorial says you can save the info output of > > > make world by redirecting like this (using sh as shell): > > > > > > make world 2>&1 | tee /var/tmp/mw.out > > > > > > I saw this 2>&1 construction in the sh man pages but I don't > > > understand it. > > > > it just means fold stderr and stdout into a single stream. > > > > > Anyway, the immediate problem is that I get an error > > > when I write this. I think it said "ambiguous redirection" > > > unfortunately I don't have it with me now. > > > > Are you absolutely sure you where using sh? That sounds distinctly > > like a csh error. > > > > -- Martijn Koster, m.koster@pobox.com > > > You're probably right. My default shell is csh. When I do "shutdown > now" it says something like "enter shell or press return for sh" but > here I guess "sh" means whatever shell you happened to be in when you > did "shutdown now"? I'll have to try the csh construct for redirecting > and see what happens. > > Thanks. > > Greg Try echo $SHELL to see what your current shell is. sh doesn't mean whatever shell you were in when you did shutdown; it is a shell itself. The csh/tcsh redirection that I do is make world >& make.out& (or whatever file you want to send it to). I do make world's without going to single user so the computer will continue to serve web pages etc., and I can (generally) log in remotely. You can see what's happening (the output here will not go to the screen) with the command tail -f make.out which you can exit with Ctrl-C You can also do other stuff, e.g., e-mail, and look at swapinfo and ps (or top) to see overall use etc. It's probably a little slower this way and there may be some processes that are using a little swap or some cpu, guess it depends on what you've got running and how much of the cpu they take. Annelise