Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I run any DOS or Shell Script in a Servlet or JSP?

 
Ely Yang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I need your help for this question:
I want to run DOS and Shell commond remotely from a servlet or JSP and get the result as a test file or any other format? Is it possible?
How should I do for this ?
Any suggestion and commend are welcome and appriacted!
Thanks!
Ely Yang
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's possible. Read the Javadoc for Runtime (here) especially the exec() method.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic