title: how to send stringed input into ProcessBuilder
body: <pre><code>class envir {
      public void run() throws IOException {
          ProcessBuilder builder = new ProcessBuilder(&quot;bash&quot;);
          builder.redirectInput(ProcessBuilder.Redirect.PIPE);
          builder.redirectOutput(ProcessBuilder.Redirect.PIPE);
          builder.redirectErrorStream(true);
          Process process = builder.start();
          System.out.println(process.getInputStream());
      }
  }
  </code></pre>
  <p>How do I make it so that I can send a string as input for my process builder to automate a cli (eg <code>env python3</code>) also using threads?</p>
  <p>If you need more info please ask; I am bad at wording these questions.</p>