Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to open a thread to do system command and one to read the command output  RSS feed

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to see a code example how to make a thread for running a system command and another thread to read the output of this command
can anyone please help me with a code example
i couldnt find any examples
thanks
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you work through the Sun tutorial on threads? Take a first shot at writing a Runnable that does the exec call and a main program to call it. We can help you best if you have some running - or almost running - code of your own to build on.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!