wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call unix shell script through servlet
 
Similar Threads
FTP
setuid
Servlets calling unix scripts
ulimit -n not working from shell scrip
generate a text file in another server ??