ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee, Jonathon" <l...@zilliant.com>
Subject RE: Stupid Windows question
Date Tue, 02 Jan 2001 18:19:23 GMT

[command] > file.txt 2>&1

will redirect both stderr & stdout to file.txt

Jonathon Lee
leej@zilliant.com
(512) 531-8525
http://www.zilliant.com


-----Original Message-----
From: James Bucanek [mailto:subscriber@gloaming.com]
Sent: Tuesday, January 02, 2001 11:55 AM
To: ant-user@jakarta.apache.org
Subject: RE: Stupid Windows question


At 11:37 AM -0600 1/2/01, Bill Lynch wrote:
>  > P.S. How can you redirect the stderr output from a command to a file?
>
>[command] > file.txt
>
>ie:
>
>dir > file.txt
>
>or
>ipconfig > file.txt

But this only redirect stdout.  stderr still goes to the shell.

__________________________________
James Bucanek
<mailto:privatereply@gloaming.com>

Mime
View raw message