Ari Moisio wrote:

>  I tried _com and serial keywords with no success. The problem is little
> differrent. I'll give an example:
> 
>   Say i have configured com1 at the rear panel to be com1  in dosemu. Com2
> is /dev/cua1 and agetty is running on it. I'll connett com1 and com2 with
> null modem cable  and run terminal emulator on dosemu.
> 
>   Question is how to do this without  the cable but still using comport at
> dosemu side and agetty or similar program on the other  end. At least
> stdin, stdout and stderr  on the linux side should be connetted to this
> serial port.

It sounds like you have a problem similar to one I'm working on.  I'm
trying to connect a telnet session to a program running in DOSEmu that
uses the com port/modem for input/output.

My approach so far (to avoid using null modem cables), is to use pseudo
tty's.  They are devices that come in pairs like "/dev/ptypN" and
"/dev/ttypN".  Where N is a single hex digit.  You should be able to run
agetty on "/dev/ptypN" and tell DosEmu to use "/dev/ttypN" as the com
port (I havn't actually done it this way myself).  Make sure you use a
psuedo tty that is not already in use (telnet connections use psedo
tty's).

I have been able to run a program that attaches stdin/stdout to
"/dev/ptyp9" on my system, and told DosEmu to use "/dev/ttyp9" as com 1
(DosEmu has to be started after "/dev/ptyp9" is opened by the other
program).  Then I have been able to do things like "copy autoexec.bat
com1" and get the output on the other end.  Unfortunately, that's about
all I've gotten it to do.

I'm still experimenting with this myself, so hopefully someone here can
help us both out.  Maybe this will give you something to work with at
least.

 - Matt Clay

Reply via email to