Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to monitor a runtime process in servlet

 
Scott Fererro
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet that is starting a UNIX script. This script may run anywhere from 30 secs to 5 minutes. I need to monitor the status of the script to let the user know when it completes. The problem is that if I try to monitor it, my servlet will not display anything until it is complete. If I do not monitor the status then it pops the window immediately but I do not know when it is done. Here is the code:


My question is: can I monitor the status of the script and pop a status window along the way? Thank you.
 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
out.flush() before rt.exec()..?
 
Scott Fererro
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. That is exactly what I needed. I appreciate the fast response.
 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic