You can use:

java.lang.Process proc= java.lang.Runtime.exec("Yourcommand");
//while loop to get process output:
proc.getOutputStream().read(buf);


Is that what you are talking about?

----- Original Message -----
From: "Daniel Lynn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 4:04 PM
Subject: invoking program


> I've got a task that I'm trying to accomplish and I think there's some
chancew
> that servlets might be a solution. Would anyone be able to point me in the
> right direction?
>
> I need to have a program that I can send a request to (without importing
the
> code into another program) and have it return a string, much like you can
do
> with coding a CGI in C. It would need to run on our server even if called
from
> another. Any suggestions?
>
> -Dan
>
>
___________________________________________________________________________
> 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

Reply via email to