That was pasted from the http://virtualschool.edu/wap context which
explains those terms. Modify to suit
At 9:06 PM -0500 6/26/01, johan talla wrote:
>Thanks Brad Cox:
>
>But, what about showStream(ctx, process.getInputStream()); and
>ctx.fault(e);????
>
>Thnk you very much...
>
>
>Johan
>
>
>
>
> Brad Cox
> <[EMAIL PROTECTED] To:
>[EMAIL PROTECTED]
> DU> cc:
> Sent by: "A mailing Subject: Re: a advice!!!
> list for discussion
> about Sun
> Microsystem's Java
> Servlet API
> Technology."
> <SERVLET-INTEREST@JAV
> A.SUN.COM>
>
>
> 06/26/01 07:46 PM
> Please respond to "A
> mailing list for
> discussion about Sun
> Microsystem's Java
> Servlet API
> Technology."
>
>
>
>
>
>
>Replace Ctx with PrintWriter, compile and call.
>
>private final void showCommand(final Ctx ctx, String commandLine)
>throws IOException
>{
> try
> {
> Process process = Runtime.getRuntime().exec(commandLine);
> int procReturn = process.waitFor();
> if (procReturn != 0)
> throw new Exception("process \"" +
>commandLine + "\" exited with value " + procReturn);
> showStream(ctx, process.getInputStream());
> }
> catch (Exception e) { ctx.fault(e); }
>}
>
>At 7:34 PM -0500 6/26/01, johan talla wrote:
>>----- Forwarded by johan talla/TSN on 06/26/01 07:35 PM -----
>>
>> johan talla
>> To:
>[EMAIL PROTECTED]
>> 06/26/01 cc:
>> 07:33 PM Subject: a advice!!!
>>
>>
>>
>>
>>
>>Hi List:
>>
>>Who can tell me How can I see the result of a Process. For example:
>>
>>Execute with the Runtime Class the executable file: Hola.exe
>>That executable file return me a value, it could be String or int.(For
>>example: Johan or 3215).
>>
>>This is the point...
>>
>>How can I capture the value that the executable file(Hola.exe) return me?
>>
>>
>>Thanks for advices, I need your help
>>
>>
>>Johan.
>>
>>
>___________________________________________________________________________
>>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
>
>
>--
>---
>For industrial age goods there were checks and credit cards.
>For everything else there is mybank.dom at http://virtualschool.edu/mybank
>Brad Cox, PhD; [EMAIL PROTECTED] 703 361 4751
>
>___________________________________________________________________________
>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
--
---
For industrial age goods there were checks and credit cards.
For everything else there is mybank.dom at http://virtualschool.edu/mybank
Brad Cox, PhD; [EMAIL PROTECTED] 703 361 4751
___________________________________________________________________________
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