From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Juhani Pirttilahti" Subject: Re: Telnet to serial port Date: Fri, 16 Jul 2004 02:19:22 +0300 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <200407160219220933.0151618B@smtp.ebaana.net> References: <200407091413040956.0115912C@smtp.ebaana.net> <20040709142808.GA25586@dbz.icequake.net> <200407091812480819.01F10C23@smtp.ebaana.net> <200407101129100240.0059FEC0@smtp.ebaana.net> <20040711235825.GA25180@dbz.icequake.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Return-path: In-Reply-To: <20040711235825.GA25180@dbz.icequake.net> List-Id: To: linux-msdos@vger.kernel.org On 11.7.2004 at 18:58 Ryan Underwood wrote: >I did something like this for synchronet's usage of dos doors: > >/usr/bin/env TERM=linux QUIET=1 DOSDRIVE_D=$NODE_TEMP dosemu.bin -I"video >{ none }" > -I"keystroke \r" -I"serial { virtual com 1 }" >-f/etc/dosemu/dosemu-bbs.conf > -E"D:external.bat" -o/tmp/dosemu.log 2> /tmp/dosemu_boot.log >> > $NODE_TEMP/dosevent.log > >This all looks horrible. Here are a few things to remember: >1) Keep track of whether you are on the DOS side or the Unix side. If >you are writing a batch file or passing a -E, you are on the DOS side. >Otherwise, you are on the Unix side. > >2) DOSDRIVE_D is a usual variable to determine where you are mounting >drive D from. It is read via 'unix -s' once dosemu has executed, >usually in the autoexec.bat. If you are using something besides a >standard freedos distribution, you will need to use unix -s and unix -e >yourself to check the environment, mount drives, and run the DOS command >given via -E. > >$NODE_TEMP in this example should point to the PCBoard node's temp >directory on the Unix side. It will be mounted as drive D on the DOS >side, so in PCBoard setup, be sure to point it to D for the node >temporary directory. This needs to be a different directory on the Unix >side for every node. > >3) the -I options add dynamically to dosemu's configuration when it has >started. >4) -f lets you give a configuration specifically for your BBS that is >separate from system dosemu configuration. > >5) -E gives the command that dosemu is to execute on the DOS side when >'unix -e' is invoked. In this case, we are running a command called >"external.bat" on the D: drive which was mounted via lredir after giving >DOSDRIVE_D to the DOS side autoexec.bat. You will want here a batch >file to start PCBoard in frontend-mailer mode. Optionally, in this >"bootstrap" batch file, you could mount other drives via lredir, i.e. >for access to door games or file areas. > >6) The rest of the stuff at the end is just for logging on the Unix >side. It can be useful for debugging. > >Any more questions, please post. > >-- >Ryan Underwood, How do I (or is it possible to without modifications to source) suppress dosemu's bootup messages?