Bookmark Topic Watch Topic
  • New Topic

Different behaviour of getInputStream() of Runtime.exec() with Linux & NT

 
Jolly Ag
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi friends
I'm facing a strange problem,,, as im starting a process thru Runtime.exec(),which return me this Process object ,this process is a server which takes some time to start completely ,now im getting this process input stream thru process.getInputStream() after using Thread.sleep(x)so that my process can be started completely ,
This works nice on linux(means it gives me complete inputstream) but when i try to execute it on NT it gives me uncomplete inputstream and its vary time to time .
can anybody please help me out ..
Tx.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post duplicate questions in different forums - it may waste time for people who don't realize a question has already been answered elsewhere. I'm closing this copy, and keeping the one in Advanced since the problem is not necessarily with the I/O itself (though I may be wrong). Follw up in Advanced.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!