aspose file tools*
The moose likes Servlets and the fly likes How to call unix shell script through servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to call unix shell script through servlet" Watch "How to call unix shell script through servlet" New topic
Author

How to call unix shell script through servlet

Sundar Subramanian
Greenhorn

Joined: Oct 19, 2005
Posts: 3
How to call unix shell script through servlet. Is it possible to call a native method which invokes a shell script?.


Sundar.S
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You need something like the following in your servlet. Read the API for more info.

Runtime.getRuntime().exec("yourshellscript.ksh")


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to call unix shell script through servlet