public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Three major questions. Issue 4
@ 2003-09-07  0:13 administrator
  0 siblings, 0 replies; 2+ messages in thread
From: administrator @ 2003-09-07  0:13 UTC (permalink / raw)
  To: linux-msdos

> $ cd src/tools/periph
> $ mkfifo fdin fdout
> $ xdosemu -Ufdin:fdout &
> $ ./dosctrl fdin fdout
> help
> ack [{on|off}]      get/set user hook handshake acknowledge
> hello               just for testing, any kinf of argument
> kill                kill the dosemu session from inside
> version             prints the dosemu version
> keystroke <strokes> insert keystrokes into the DOS session
> log [debugflags]    get/set debugflags which control log output
> hog [value]         get/set the HogThreshold
> boot [{on|off}]     get/set the mode of the vbootfloppy
> xmode [<args>]      set X parameters, without args gives help
> lredir n: dir [ro]  redirect directory 'dir' to DOS drive 'n:'
> help                this screen
> ecpu [{on|off}]     get/set cpuemu
> config              print the current configuration
> version
> dosemu-1.1.5.7
> ^C
> $
>
> All this does is trade on input terminal for another...
> and tie me to x as well.

no, it is just an example. You can start dosemu instead of xdosemu if you
like and start dosctrl in another terminal. All that dosctrl does it to
talk to fdout and get input from fdin in an infinite loop.

> I know how to create and permission a FIFO
> it "talks" to dosemu fine ( dosemu reads from it )
> dosemu produces ( bogus) output on the output pipe
> so we know it is connected to the output pipe....
> so why do I get the    Command "whatever" not found
> no matter what I type?

if you type "help" it should present you with the above left.

And the light comes on at last...:)
I do have it setup correctly...
I just do not have a dos shell
I have the pre-initialization environment
Is this correct?

$ echo help > fdin
$ cat fdout
ack [{on|off}]      get/set user hook handshake acknowledge
hello               just for testing, any kinf of argument
kill                kill the dosemu session from inside
version             prints the dosemu version
keystroke <strokes> insert keystrokes into the DOS session
log [debugflags]    get/set debugflags which control log output
hog [value]         get/set the HogThreshold
boot [{on|off}]     get/set the mode of the vbootfloppy
xmode [<args>]      set X parameters, without args gives help
lredir n: dir [ro]  redirect directory 'dir' to DOS drive 'n:'
help                this screen
ecpu [{on|off}]     get/set cpuemu
config              print the current configuration

Maybe you were thinking that it directly takes DOS commands. It doesn't.
No "dir" and "copy", but "xmode" and "hog" are valid commands.
It controls certain aspects of a virtual machine.

> Does this "feature" actually work? ( in 1.1.5.6 )
> Has it ever worked in any version?
> ( with normal FIFO files driven by a frontend )

it works like I showed you. Not more not less.

When I type "help" I get the correct output...:)
but the keystroke command is giving me some trouble
is the syntax like the -input flag?
or do I put them in plain?  ( no quote and no trailing \r   )

send me a couple of quick examples of
keystroke input syntax ( do you have to quote the string?)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Three major questions. Issue 4
@ 2003-09-07  1:28 administrator
  0 siblings, 0 replies; 2+ messages in thread
From: administrator @ 2003-09-07  1:28 UTC (permalink / raw)
  To: linux-msdos

Maybe you were thinking that it directly takes DOS commands. It doesn't.
No "dir" and "copy", but "xmode" and "hog" are valid commands.
It controls certain aspects of a virtual machine.

That is not much help.... I need a dos shell, that will take input from a pipe.
Is there any way to do this with dosemu?

I have tried while : ; do ( cat pipein ) done | dosemu.bin -U pipein:pipeout >> pipeout

It works for the first carriage return ( at the "enter to start" prompt )
then the pipe is useless
I suspect dosemu spawns a child process....
the pipe of course does not follow the child, it is talking to a sleeping parent process.

Any ideas on a way around this?


> Does this "feature" actually work? ( in 1.1.5.6 )
> Has it ever worked in any version?
> ( with normal FIFO files driven by a frontend )

it works like I showed you. Not more not less.

I have the picture on  -U now
it is not what I thought.

I need to access dosemu through pipes from a bash script
start a process
feed it input
LOOP: get output ; analyze that ; send more input
close dosemu and return to bash


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-07  1:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-07  0:13 Three major questions. Issue 4 administrator
  -- strict thread matches above, loose matches on Subject: below --
2003-09-07  1:28 administrator

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox