aspose file tools*
The moose likes Servlets and the fly likes invoking Korn shell scripts from a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "invoking Korn shell scripts from a servlet" Watch "invoking Korn shell scripts from a servlet" New topic
Author

invoking Korn shell scripts from a servlet

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
How can we invoke a korn shell script from a jsp/servlet on a form submission?

Thanks,
Neeraj.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
That's what Runtime.exec and the ProcessBuilder class are there for.


Ping & DNS - updated with new look and Ping home screen widget
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
thanks ulf. It will be a great help, if you could some sample code. I want to try somethnig like following under tomcat.





how can I make it work.

thanks,
Neeraj.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
Read the article, it contains plenty of sample code.
 
wood burning stoves
 
subject: invoking Korn shell scripts from a servlet
 
Similar Threads
Do I have to use JNI to invoke Korn shell or perl script from java ?
Are the basic Linux commands different?
Oracle8i on Linux, strange JDBC problem!
What shell script is wise invest in learning? ksh? bash? sh? csh? help!
Telnet and windows characters