I had this problem the other day, this should let you do what you want.
1) Put the command you want to run in an environment variable. Say you
want to run "dir /w", then you would do something like the following
(I'm using bash, so I need to export the variable so DosEmu can see it):
export COMMAND="dir /w"
2) Go into DosEmu and run the "unix" (the "unix.exe" program that comes
with DosEmu). You'll need to specify the "-e" parameter, and the name
of the environment variable you set (the variable name is case
sensitive). Like this:
unix -e COMMAND
That should run the command you put in the COMMAND environment
variable. Now, if you want to automate this a bit more, you could put
the "unix -e COMMAND" into your autoexec.bat file, and then put
"exitemu" afterwards. You could even create a shell script to set the
enviroment for you and then run DosEmu, based on arguments passed to the
script.
Hopefully, this will do what you wanted.
Bill wrote:
> I need to have the ability for any number of users to use the
> dosemu at the same time, with a different command being run.
- Matt Clay