Hi, I have a program running under dosemu (Ver 0.98.8.0
running on RedHat 6.2)

I set it up to use "autoexec.bat" so that I can run the
whole deal in batch.  The program seems to be using VGA
graphics (not that i care, the display is not what I am
interested in). Everything works except for one problem.
When this program is finished it insists that a user
interactively press the "Enter" key before it will clean
up and go away properly.  This need for "Enter" is the
only thing standing in the way of what I really want...
that is, for the process to become a cron job.

Any ideas about how to do this would be appreciated.

I do suppose I could fork a child, wait until the output
file looks complete and then kill the dosemu process.
It is a solution that lacks all elegance (although there
is a macabre appeal to using kill as the "normal" means
of stopping a dos process).

What I really need is a way to:

        /usr/bin/dos < /dev/null

I have tried this, it does not work, neither does:

        echo '\n' | /usr/bin/dos
        echo '\r' | /usr/bin/dos

I have also tried: /usr/bin/dos -U inpipe:outpipe
which seems to accomplish nothing. (yes, both pipes
were set up as prw-rw-rw- using mknod and chmod).

-Michael B.

Reply via email to