[Shorewall-users] STDERR messages
Fri, 05 Apr 2002 15:19:01 -0700
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=us-ascii
"Cowles, Steve" wrote:
> > -----Original Message-----
> > From: Gar Nelson [mailto:email@example.com]
> > Sent: Friday, April 05, 2002 3:30 PM
> > To: firstname.lastname@example.org
> > Subject: [Shorewall-users] STDERR messages
> > I already deleted the earlier message, but it got me thinking anyway.
> > The question was about all the iptables messaages that get
> > output to the
> > main console terminal. Tom said something like 'just redirect STDERR'.
> > Okay. Looking at Marcel Gagne's Linux Sys Admin book, he talks about
> > STDERR on page 54 with the illustration;
> > command-name 2>&1 > logfile.out
> > Next I looked at /etc/rc/d/init.d/shorewall and found
> At least with bash -- the correct syntax to redirect stderr onto stdout is:
> command-name >/tmp/log 2>&1
> command-name 2>&1 >/tmp/log
> Note the order of redirection.
Indeed! And Tom did address that in his followup message. I did find
that in my O'Reilly Bash book (pg 168) once you pointed that out, but
the Sys Admin book by Gagne is what I'm currently reading. Thanks to
both for the heads up on the order of redirection.
Content-Type: text/x-vcard; charset=us-ascii;
Content-Description: Card for Gar Nelson
adr;quoted-printable:;;NWS Office Glasgow=0D=0A101 Airport Rd. ;Glasgow;Mt;59230;USA