Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2000 10:37:19 -0400
From:      John <papalia@udel.edu>
To:        "Dimitri T." <midios4@hotmail.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: redirect standard error
Message-ID:  <4.3.1.2.20000829103132.00ac2890@mail.udel.edu>
In-Reply-To: <F44b9dFFI6OzOnr2t0U0000222a@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>i run a program and redirect its output to a file. But errors appear on 
>the screen.
>
>How can I redirect the standard error so that all the output of the 
>program (i.e. output + errors) goes to that single file??
>
>B.t.w. I use tcsh.

try using:

program >& outputfile

that should put your stdout an stderr both in the same file (man tcsh and 
search on `redirection' to read the section on it).

--john



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.1.2.20000829103132.00ac2890>