String unixCommand = "./run.sh";
     Runtime rt = Runtime.getRuntime();
     rt.exec("unixCommand");


will do for u !

----- Original Message -----
From: "Vaishali S. Pandya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 10:59 AM
Subject: how to run shell script from jsp?


> i want to run a unix shell script from my jsp page
> my tomcat is on the same platform on unix only
> if one knows about please can send me the code?
> actually i have used Runtime.exec() but not working
>
> Thanks
> Vaishali
> Relience Ind Ltd
> Ahmedabad
>
>
===========================================================================
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

**************************Disclaimer**************************************************

 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged'
and 'confidential' and intended for use only by the individual or entity to which it is
addressed. You are notified that any use, copying or dissemination of the information
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

****************************************************************************************

Reply via email to