ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gle...@ca.ibm.com
Subject RE: Stupid Windows question
Date Tue, 02 Jan 2001 18:16:03 GMT


[command] > file.txt
redirects stdout to file.txt, _overwriting_ file.txt if it already exists.

[command] >> file.txt
redirects stdout to file.txt, _appending_ to file.txt if it already exists.

Glenn McAllister
Software Developer. IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the
right answer to the wrong question." - John W. Tukey


Please respond to ant-user@jakarta.apache.org

To:   <ant-user@jakarta.apache.org>
cc:
Subject:  RE: Stupid Windows question


Hello,

i am not sure, try [command] >> file.txt

Lars Diestelhorst

> -----Original Message-----
> From: James Bucanek [mailto:subscriber@gloaming.com]
> Sent: Tuesday, January 02, 2001 6:55 PM
> 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