title: Automation of [y/n] in Debian/Linux
body: <p>I am writing a script file to automate. I am downgrading a Php version of the machine.
  The command that I am using is interactive.</p>
  
  <p>It will ask me three question which I need to respond to in the form of n/Y/q.</p>
  
  <p>I know I can use <code>yes | {command}</code>.
  But I need to give series of No,Yes,Yes.</p>
  
  <p>How can I do that?</p>
  
  <p>I even tried doing <code>echo " N Y Y" | command</code> but it's not working.</p>
  
  <p>I am using Debian Wheezy.</p>
  
  <p>Any help?</p>