Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoking Korn shell scripts from a servlet

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we invoke a korn shell script from a jsp/servlet on a form submission?

Thanks,
Neeraj.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what Runtime.exec and the ProcessBuilder class are there for.
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the article, it contains plenty of sample code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic