• Post Reply Bookmark Topic Watch Topic
  • New Topic

command execution  RSS feed

 
Marina JOSEPH
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My server needs to perform System.Runtime.exec("ls") command. I need to capture the output from the command and send it back to client. How?
 
Carlos Failde
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an example of capturing the output from a system command.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!