Thomas Bretz wrote:
>
> Hi,
>
> I want to redirect an error message to a file:
> Error in <TArrayF::operator[]>:...
>
> It is printed from my own precompiled program and I tried:
> programname 2>&1 > output.txt
>
> But the error message is still printed on the screen rather than
> redirected. What can I do?
programname > output.txt 2>&1
Some shells allow
programname &> output.txt
HTH,
Ingo
-- Dr. Ingo Strauch Inst. f. Experimentalphysik office: DESY, Bldg. 67b, room 3 Universitaet Hamburg fon: +49 (0)40 8998-2952 / fax: -2959 Luruper Chaussee 149 web: http://www.desy.de/~strauch/ D-22761 Hamburg, GermanyReceived on Wed May 18 2005 - 14:32:15 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:08 MET