954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to execute shell command form Java servlet?

In many languages (like PHP/Perl) you can execute shell commands, what package or method do you use in Java2 to execute a shell command?

Thanks,
Jon

Joncamp
Light Poster
34 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

Runtime.exec( ) ;

Search on JavaWorld.com for a good article about the traps and pitfalls of Runtime.exec

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You