TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Henk den Adel
from: Darin McBride
date: 1997-01-28 16:31:44
subject: redirection

HdA> appli  log

 HdA> leaves me with a file of 0 length, whereas without redirection:

 HdA> appli < input

 HdA> results are written to the screen.

Try using fprintf(stderr,...) or changing stdout's buffer to 0, or you
could just fflush(stdout) after every call to printf.  Any of these would
result in a longer 'log' file.


--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 342/5015 61 3615/50 396/1 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.