www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/30/11:21:03

Date: Wed, 30 Aug 1995 16:58:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Erik Max Francis <max AT alcyone DOT darkside DOT com>
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019