title: Interactive Shell Cocoa Application (NSTask)
body: <p>I am trying to figure out how to pass input to a NSTask when prompted.</p>
  
  <p>Example: </p>
  
  <p>I do something like </p>
  
  <pre><code>kinit username@DOMAIN
  </code></pre>
  
  <p>and I get a "enter Password" prompt. I want to be able to supply the password to that NSTask.</p>
  
  <p>Does anyone know how to do this? (Basically automating the process through a cocoa app).</p>
  
  <p>Thanks!</p>