Hi all,
I'm trying to use dosemu (0.98.4.0) as a "doscmd" replacement
to execute "simple" commands (like an assembler, compiler etc.).
I know of the DEXE scheme, but currently (for easy testing) I just
modified the c:autoexec.bat to lredir a ${TMPDIR} area and start
a batchfile setting up environment variables, cd'ing to my unix
cwd and finally executing the passed command line.
No problem for interactive usage (command line = "command"). But:
1. How can I suppress all initial output (cpu test, dosemu banner,
dpmi support, ems driver message)?
2. If the start script has a command line like "dir", the output
is *sometimes* missing. I got the impression that this is due
to the cyclic terminal update. I terminate the script with
c:exitemu
so I hoped that this would flush the output, but it doesn't.
How can I fix this?
3. Is there a way to suppress screen-oriented output (so no escape
sequences if the DOS application only sends "normal" lines)? I
had no success with TERM=dumb nor TERM=none nor TERM=dosemu-none.
Do I have to have terminfo entries for these?
4. How can I feed back the exit value of my DOS application to the unix shell?
Would DEXE help me?
My autoexec.bat looks like:
@echo off
lredir t: linux\fs\${TMPDIR} >nul
if exist t:\run.bat goto run
lredir u: linux\fs\usr/common/dos >nul
call u:\autoexec.bat
c:\exitemu
:run
call t:\run.bat
c:\exitemu
And t:run.bat is e.g.:
@echo off
c:\lredir h: linux\fs/node/ra/louis >nul
c:\lredir u: linux\fs/usr/common/dos >nul
c:\lredir z: linux\fs/ >nul
set U=u:\uti
set PATH=u:\psh;u:\msc;c:;%U%;u:\bin;u:\gsp
set INCLUDE=u:\include;%U%\include
set LIB=u:\lib;%U%\lib
z:
cd \
command
c:\exitemu
[the "cd \" is replaced by the actual cwd, "command" by the command line]
louis
--
J�rgen Fluk
marco Systemanalyse und Entwicklung GmbH Tel +49 8131 5161-42
Hans-B�ckler-Str. 2, D 85221 Dachau Fax +49 8131 5161-66
http://www.marco.de/ Email [EMAIL PROTECTED]