Guys - On Linux I can: acmd >>my.log 2>>my.log
and this works perfectly.
On this WInXP box if I try that, I get message:
The process cannot access the file because it is being used by another process.
Is there a way to accomplish what I am trying to do?
Thanks, Guy
What are you trying to do exactly? Redirect the output to 2 seperate files? If so: dir file.txt 2>&1
"Computer security." — Oxymoron
No, not separate files. I want to redirect stdout and stderr to the same file.
Output of those streams should be mingled/merged in the specified file.
Maybe I am asking the wrong question.
On linux I will do:
somecmd 2>&1 | tee logfile.txt
How do I do that in Win?
G.
I think somebody, probably IVO, posted a fix a few months ago but I can't find it. LOL Maybe a new thread with a subj like 'redirect stderr in NT'.
=====================================
If at first you don't succeed, you're about average.M2
Lol, sorry, thats what I meant, I just forgot the first >. Oops "Computer security." — Oxymoron
| « decimal numbers in DOS | Getting Win/MsDos Date Va... » |