redirecting stdout in /etc/rc
Robert_Toxen%anvil.UUCP at harvard.harvard.edu
Robert_Toxen%anvil.UUCP at harvard.harvard.edu
Wed Apr 16 06:58:58 AEST 1986
> From: rs%mirror.uucp at 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
============================
More information about the Comp.unix.wizards
mailing list