2

This may seem a bit daft, but

  • My Java code creates a sub-process
  • I have a native function used elsewhere in the Java code which takes a pipe's file descriptor as an argument, and writes to that pipe.
  • I want the function to write to the sub-process's standard input.

Is there a sensible way of achieving this?

This question may appear to be related to this, but differs in that I can't just use the OutputStreams provided by Process, because the native function takes an FD.

user234461
  • 1,133
  • 12
  • 29
  • [This question](http://stackoverflow.com/questions/4845122/using-a-numbered-file-descriptor-from-java) might be helpful. – Kenster Mar 05 '15 at 00:12

0 Answers0