• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call unix shell script through servlet

 
Sundar Subramanian
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to call unix shell script through servlet. Is it possible to call a native method which invokes a shell script?.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need something like the following in your servlet. Read the API for more info.

Runtime.getRuntime().exec("yourshellscript.ksh")
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic