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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 1506
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to call unix shell script through servlet
 
Similar Threads
setuid
ulimit -n not working from shell scrip
Servlets calling unix scripts
FTP
generate a text file in another server ??