[Shorewall-users] STDERR messages
Fri, 5 Apr 2002 16:00:38 -0600
> -----Original Message-----
> From: Gar Nelson [mailto:firstname.lastname@example.org]
> Sent: Friday, April 05, 2002 3:30 PM
> To: email@example.com
> 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.