You can call System.getRuntime() , then Runtime.exec() which returns a
process obj. You can trap the i/p from it.

Or see chapter 12 in Orily's servlet book

Tushar

> ----------
> From:         Deepak C S[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list about Java Server Pages specification and
> reference
> Sent:         Tuesday, January 09, 2001 5:57 PM
> To:   [EMAIL PROTECTED]
> Subject:      running linux commands from Java(JSP/servlets)
>
>  Hi,
>
>         Is there anyway to execute Linux commands from within JSPs or
> Servlets??
>
>         like in perl,...we place OS commands in         backquotes eg.
> `cat
> file.dat`
>
> advance thanx ,
> Deeps
>
>
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to