Date: Wed, 30 Aug 1995 16:58:44 +0200 (IST) From: Eli Zaretskii To: Erik Max Francis Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Redirecting stdin & stdout through the serial port? On Tue, 29 Aug 1995, Erik Max Francis wrote: > Is there any simple way within DJGPP (or DOS, I suppose) to redirect > stdin and stdout through a serial port (say, COM1:)? I don't want to do > any fancy handling of the serial port as a modem line; I basically just > want to be able to communicate normally as through stdin and stdout > through a dumb terminal attached to the serial port to my machine. Did you try the obvious: myprog > COM1 COM1 is a ``file'' which DOS takes to exist in every directory (actually, a device driver loaded by DOS makes it believe so), so this should work, IMHO. You just have to set your terminal on the other side to the COM1 settings which the BIOS sets at boot time. You also can't communicate very fast, I suppose.