• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trouble writing to process stream on Windows

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an external app I need to drive by sticking data in its stdin - I create the process and grab the streams accordingly (see below). On unix, this works fine, but on Windows I'm getting

java.lang.IOException: The pipe is being closed

as soon as I try to write a second batch of data to it (I don't close the stream in between writes). Anybody seen this before? I could theoretically write to a local file and change how I call the app, but I'd rather not, since it works quite well done this way in its existing environment on the unix server and I'm trying to maintain common code.

Here's the creation code:




and writing to the process goes like this:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic