Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!brl-adm!brl-smoke!smoke!es!Robert_Toxen%anvil.UUCP@harvard.harvard.edu From: Robert_Toxen%anvil.UUCP@harvard.harvard.edu Newsgroups: net.unix-wizards Subject: redirecting stdout in /etc/rc Message-ID: <25@brl-smoke.ARPA> Date: Tue, 15-Apr-86 15:58:58 EST Article-I.D.: brl-smok.25 Posted: Tue Apr 15 15:58:58 1986 Date-Received: Fri, 18-Apr-86 04:35:01 EST Sender: news@brl-smoke.ARPA Lines: 28 > From: rs%mirror.uucp@BRL.ARPA > Subject: Redirection in /etc/rc* in 4.2 > Date: 28 Mar 86 21:12:00 GMT > > I sent this out once before, but I don't think it made it out > the door.... > > In BSD4.2, is there any good reason why /etc/rc shouldn't >- have an "exec >/dev/console 2>1" at the top, and punt all >+ have an "exec >/dev/console 2>&1" at the top, and punt all > those line-by-line redirections throughout it and rc.local? > > -- > Rich $alz {mit-eddie, ihnp4!inmet, wjh12, cca, datacube}!mirror!rs > Mirror Systems 2067 Massachusetts Avenue Cambridge, MA, 02140 > Telephone: 6,176,610,777 I doubt there is any reason not to do it. We did essentially the same thing for the Onyx System III port. Note that I added an ampersand (&) which is needed. Note that it is a common error in UNIX ports to forget to redirect stderr (particularly for fsck) in /etc/rc from its default of essentially /dev/null. Bob Toxen Stratus Computer {ucbvax!ihnp4,harvard}!anvil!bob ============================