Re: Redirecting stdout and stderr into a file
On Wed, 10 Nov 2004 09:20:29 -0800 (PST), "Sergio
Basurto" wrote:
>
> On Wed, 10 Nov 2004 10:03:17 -0700, Rob Sims wrote:
>
> >
> > On Wednesday 10 November 2004 09:36 am, Otto Wyss
> wrote:
> > > Blake Swadling <blake@swadling.com> wrote:
> > > > > but how can I redirect both together?
> > > >
> > > > grep 2>&1 logfile
> > >
> > > Sorry does not work, stderr comes still on the
> > terminal.
> >
> > command > logfile 2>&1
> > --
> > Rob
> >
>
> The command is:
>
> #command 2>./logfile
Sorry bad reference, I understand that you want to send
stderr to a file, but the command to send stdout &
stderr to a file is
#command 2>&1> ./logfile
Hope this help.
--
Sergio Basurto J.
If I have seen further it is by standing on the
shoulders of giants. (Isaac Newton)
--
--
Reply to: