flat assembler
Message board for the users of flat assembler.

Index > Windows > Console output

Author
Thread Post new topic Reply to topic
spacebuddy



Joined: 26 Aug 2009
Posts: 5
spacebuddy 29 Aug 2009, 20:04
In a Command prompt when I type fasm.exe test.asm > test.txt
I get the output in test.txt.

But, when there is an error in the source code(test.asm)
the error message never makes it into test.txt?

anyone know why that is and how to get the full redirection? Laughing
Post 29 Aug 2009, 20:04
View user's profile Send private message Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2465
Location: Bucharest, Romania
Borsuc 29 Aug 2009, 20:18
The errors are usually directed to StdErr, not StdOut.

This is standard Windows and *nix thing. You have to redirect StdErr to that file. Use 2> test.txt to redirect StdErr (2), or 1> for StdOut (1).

To do both use 2>&1 test.txt.

yeah annoying syntax I agree Confused

_________________
Previously known as The_Grey_Beast
Post 29 Aug 2009, 20:18
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 29 Aug 2009, 22:18
Why would you want to redirect error messages? Most people don't want their output mixed with that. Hence it goes to stderr (also so you can still see errors on the screen when redirecting output to text.) If you use FASMW (or FASMD, heh), it will jump to errors for you. Wink
Post 29 Aug 2009, 22:18
View user's profile Send private message Visit poster's website Reply with quote
spacebuddy



Joined: 26 Aug 2009
Posts: 5
spacebuddy 30 Aug 2009, 03:27
FASMW works great Laughing
Post 30 Aug 2009, 03:27
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.