Skip to contentSkip to conversation

Faster startup of DOSEMU

DISCUSSION Brian Hancock 2 participants 3 messages Oct 17, 2006

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I have been executing a DOS program in DOSEMU using -I 'keystroke xxxx' to call the program. using the
dosemu.bin -D-a -I 'keystroke "program.exe params\rexitemu\r"' >my.log 2>&1;

I have been trying to improve the performance of this as the results are being delivered back over the web and I want a fast response. One major timing concern is the overhead of pumping the keystrokes in which after timing test I find gives an overhead of around 2 seconds (excluding the startup and closing of dosemu.bin which seems to be around (1 seconds), and since the application I am running typically runs for 1 to 10 seconds depending on the complexity of the output. But for a simple output taking say 1 second, being able to trimup to 2 seconds off a 4 second run will make the application just that much more responsive.

I have tried eliminating the kystroke method by writing a response file: eg
===< response.file >=========
program.exe params
exitemu
========================
and starting dosemu with

dosemu.bin -D-a <response.file >myerrors.log 2>&1

But the commands in the response.file do not seem to work. In fact I get left
inside a DOSEMU window, and I need to Ctrl-C to exit.

I have also tried the following command line:
dosemu.bin -D-a "program.exe params" >myerrors.log 2>&1
and although this executes it has an additional 10 second overhead, so it is even slower the the keystroke pumping.

I have never been able to use the wrapper function such as dosemu -quiet -dumb
I always get the "Now type ENTER to start DOSEMU or <Ctrl>C to cancel" message.

What is the best way to run a DOS program from the Linux shell without having
to provide any interactivity other than from the shell/perl script.

Many thanks
Brian

#1 lore raw
Quoted 7 lines · Brian Hancock

I have been executing a DOS program in DOSEMU using -I 'keystroke xxxx' to call the program. using the
dosemu.bin -D-a -I 'keystroke "program.exe params\rexitemu\r"' >my.log
2>&1;

I have been trying to improve the performance of this as the results are being delivered back over the web and I want a fast response.

[...]

The best way may be to use "unix -e" at the end of your autoexec.bat, and use a DOS command, like
dosemu -dumb "foo.exe input.txt"
(or
dosemu.bin -I'video{none}' "foo.exe input.txt"
) Now input.txt is on the DOS command line, so any < you put in the quotes will use DOS command redirection. Sometimes this is impossible though, if the DOS program really expects to see keystrokes.

Quoted 1 line

dosemu.bin -D-a <response.file >myerrors.log 2>&1

I think input redirection is broken in released versions and you would need to try out the Subversion version. The documentation about these things was also improved somewhat (in Chapter 12 of README.txt).

Bart

#2 lore raw

Hi Bart,

Thanks for that Bart,

I don't actually need any DOS redirection... the DOS application just takes commandline parameters, and its output is to a file... Does this modify what you are suggesting?

Also what does unix -e do? I looked at the help and there was not mention...

Thanks
Brian

----- Original Message ----- From: "Bart Oldeman" <[email protected]>
To: "Brian Hancock" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, October 18, 2006 9:01 AM
Subject: Re: Faster startup of DOSEMU

Quoted 32 lines
Quoted 7 lines · Brian Hancock

I have been executing a DOS program in DOSEMU using -I 'keystroke xxxx' to call the program. using the
dosemu.bin -D-a -I 'keystroke "program.exe params\rexitemu\r"' >my.log
2>&1;

I have been trying to improve the performance of this as the results are being delivered back over the web and I want a fast response.

[...]

The best way may be to use "unix -e" at the end of your autoexec.bat, and use a DOS command, like
dosemu -dumb "foo.exe input.txt"
(or
dosemu.bin -I'video{none}' "foo.exe input.txt"
) Now input.txt is on the DOS command line, so any < you put in the quotes will use DOS command redirection. Sometimes this is impossible though, if the DOS program really expects to see keystrokes.

Quoted 1 line

dosemu.bin -D-a <response.file >myerrors.log 2>&1

I think input redirection is broken in released versions and you would need to try out the Subversion version. The documentation about these things was also improved somewhat (in Chapter 12 of README.txt).

Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html