cvs.gedasymbols.org/archives/browse.cgi | search |
From: | ams AT ludd DOT luth DOT se (Martin Str|mberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: stderr | stdout > file |
Date: | 4 Apr 1999 11:19:36 GMT |
Organization: | University of Lulea, Sweden |
Lines: | 27 |
Message-ID: | <7e7hs8$cr4$2@news.luth.se> |
References: | <3703B753 DOT 6FC4C8DE AT geocities DOT com> |
NNTP-Posting-Host: | queeg.ludd.luth.se |
X-Newsreader: | TIN [UNIX 1.3 950824BETA PL0] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
The Beyonder (beyonder69 AT geocities DOT com) wrote: : In DJGPP how can I pipe stderr or stdout to a file like foo.dmp? I : assumed something like: : // code... : stdout = fopen( "foo.dmp", "wt" ); : // code.. : : but DJGPP gives me: : : non-something lvalue.... Try FILE *f = fopen( "foo.dmp", "wt" ); fprintf(f, "Blablabla.\n"); or (outside your program) redir -eo -o foo_dmp your_program or (outside your program) bash your_program >foo.dmp 2>&1 exit Arnold, Symphony No. 4, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |