How to execute a two stage command using system() or exec()
<p>I want to execute a command which will prompt me for some input. </p>

<p>I could figure this out by trial &amp; error, but what's the best way to do it? </p>

<ul>
<li>Write a small batch file and Exec(I) that?    </li>
<li>Exec($command . '\r\n' . $input);    </li>
<li>Some thing else?</li>
</ul>
