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

Reply via email to