This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes Executing a shell script from a jsp 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 » JSP
Bookmark "Executing a shell script from a jsp" Watch "Executing a shell script from a jsp" New topic
Author

Executing a shell script from a jsp

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 978
Is it possible that we can execute a shell script from a jsp that resides on the same machine as the server where we have deployed the web application...the machine is a linux machine..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Odd thing to do in a JSP.

But yes, you can do it just like within any other Java class.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 978
Hi Bear,

Can you post some links/info about that ..?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Been discussed many times throughout the forums. A search should find many topics.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executing a shell script from a jsp
 
Similar Threads
invoking Korn shell scripts from a servlet
Invoking a shellscript using JSP
how to execute shell script from java program
jsp control problem
Return value from main