community.borland.com

Article #25606: Writing both stdout and stderr to same file on NT

Problem:
How do I write both the stdout and stderr output to the same file?

Solution:
Here is an example of how to do this:

    isql -i script.sql 1> output.txt 2>&1

The 1> redirects stdout to the file output.txt.  The 2>&1 redirects stderr to 
stdout (which points to the file)


Last Modified: 26-OCT-00