From: ROBERT_FINLEY AT ntsc DOT navy DOT mil Date: Tue, 05 May 98 10:50:47 EST Message-Id: <9804058943.AA894394668@CCMAIL.NTSC.NAVY.MIL> To: Eli Zaretskii Cc: djgpp AT delorie DOT com Subject: RE: Make "Clock Skew" problem. Precedence: bulk As I said before I need to investigate further, but about 1 out 3 times from the command line (main < input > output) the program reads the input and processes it correctly, else it seems to fail to open the input. Actually STDOUT works fine. This is very weird. When I said DOS 7, I meant Windows 95 [ver 4.00.950 B ] / DOS [ver 4.00.1111], the latest version. I assumed that's what most people call DOS 7. main.exe is just a name. However the problem is in a small test program that I wrote just to experiment with and get familiar with djgpp. Two .c files and a .h file. I read input like this: char buffer[128]; ... int scan() { ... if (!gets(buffer)) return; ... } Seems simple enough but I haven't really got into it yet. Thanks, Rob Finley -----Original Message----- From: Eli Zaretskii Sent: Tuesday, May 05, 1998 6:48 AM To: ROBERT FINLEY Cc: djgpp AT delorie DOT com Subject: RE: Make "Clock Skew" problem. On Mon, 4 May 1998 ROBERT_FINLEY AT ntsc DOT navy DOT mil wrote: > I have found that DOS 7 also seems to have a problem with STDIN/STDOUT > redirection. The following statement does not execute properly from > my Makefile and executes properly 1 out of 3 times from the command > line: > > output : main.exe > main.exe < input > output Please describe what exactly happens which leads you to the conclusion that it doesn't ``execute properly''. I use DOS 7 extensively, and I have never seen any problems with redirection, neither in programs launched from a Makefile, nor from the command line. Btw, is main.exe in the abive example a DJGPP program? If not, what kind of program is that?