Hi again,
further to my last message, I can eat a little humble pie - it does work as
described, so long as the application called doesn't try to interact with
the
GUI. In our case the application displays a MessageBox, but for some
reason this doesn't show, and because nobody dismisses the message,
it 'hangs' the servlet there.
Does anybody know how to access the GUI (Windows NT 4 in our case)
from a program invoked by Runtime.exec() in a servlet? That would
be useful, if not gratifying to see.
Sorry for my mistake, but thanks for any further help,
Mark
> -----Original Message-----
> From: FOLEY Mark (EDS)
> Sent: Tuesday, 8 June 1999 13:45
> To: [EMAIL PROTECTED]
> Subject: Executing programs from Servlets
>
> Hi,
> I am having trouble executing a program from a servlet, as described in
> Jason Hunter's Java Servlet Programming book (pages 407+).
>
> I am using Win NT 4 with IIS 4 and ServletExec 2.0.2 and JDK 1.1.7A
> and JSDK 2.0.
>
> I want to allow an administrator to kick off a housekeeping task on the
> NT Server by issuing his command from a web page.
>
> I have tried all the following as arguments to the Runtime.exec()
> function:
> (String) "myprog"
> (String) "command.com myprog"
> (String[]) { "command.com", "myprog" };
>
> I can start this program from a normal java application with the first
> argument style.
>
> Any help would be appreciated, thanks.
>
> Mark Foley
> EDS (Australia)
> +61-2-62756494
> [EMAIL PROTECTED]
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html