title: How can I supply input for an external command?
body: <p>It is to my understanding that Scala can run system commands and receive their output. I am working on writing a web client for a system command that I have, so that being said I need to perform the command, receive the output, based on the output I can give it a command. I want to keep doing this until the user kills the command. I have read a bit about ProcessIO and I have gotten as far as getting the command to run from scala and receiving the output, but how can I give it input?</p>
  
  <p><strong>EDIT:</strong> What I am looking for is, I call a command with scala. The command I call asks for a input, the user supplies the input to the scala program with then passes that to the called program.</p>
  
  <p><em>An Example:</em></p>
  
  <p>Scala Program -> Calls System Program -> System Program ask for username and password -> Scala Program program then asks for username and password from user and user supplies input -> Scala program passes inputs to System Program.</p>
  
  <p>I would like to keep the process alive while feeding it input.</p>