File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 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://aspose.com/file-tools
 
subject: How to call unix shell script through servlet
 
Similar Threads
Servlets calling unix scripts
FTP
generate a text file in another server ??
setuid
ulimit -n not working from shell scrip