On Mon, 10 Sep 2001, Foresight Systems Ltd. wrote:
> We are working under RedHat 7 Linux environ using apache as web server.
> Our web application needs to execute dos based program which we are
> trying to run through dosemu. Our objective is to execute dosemu through
> a Php program using apache as web server.
> It seems that apache is not allowing to trigger dosemu through http
> protocol (php program in browser).
> What is the way out.
I have never tried this & so won't be able to help you out. However, it
might be easy to debug. Apache puts several restrictions on the scripts
that are running. How r u exec'ing dos from PHP (I dunno PHP) - some
system() call ? DOSEMU itself may not be in your path when the PHP script
is run. If DOS is setuid, then from a security point of view, it may not
be really advisable.
> Also please suggest if we can pass parameters to dos applications using
> dosemu under Linux in an web application where the data is being
> collected using php form application in Linux.
I don't think that's directly possible. However you can pass key strokes
to dos, using the -I option.
eg.
dos -I 'keystroke "c:\net\vlm /x"'
That way when you launch dosemu, you can execute any command with any
params. However, this requires that you launch dos for executing every
command. If you want a single dos session, that you can look into -U
option (I haven't used it myself) or you can use a utility like expect for
more flexibility.
HTH,
Sreeji
-
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