Home > Uncategorized > standard output and error to same file

standard output and error to same file

08/21/2009 mynotes

question:

I want both standard output and standard error of my command cmd to go to the same file log.txt

answer:

cmd >log.txt 2>&1