This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
That's what Runtime.exec and the ProcessBuilder class are there for.
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Read the article, it contains plenty of sample code.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: invoking Korn shell scripts from a servlet
 
It's not a secret anymore!