<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><blockquote><pre class="u-article">Simple Loop:
- Read from program output
- interpret the output and
- write to program input.
That's all the "general" advice we can give.<br></pre></blockquote><div> </div>
<div>Yea sure I do this and I have no problem with simple CMD programs.<br></div>
<div>Problem is programs like MySQL that can be run from one line command and need reading and writing.<br></div>
<div>When you run this command :<br></div>
<div><span style="color: rgb(43, 73, 125); background-color: rgb(232, 236, 242);">'"C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin\mysql.exe" -u root -p';</span><br></div>
<div id="sig12586409"><div class="signature">You will get nothing in the output, it is locked and you even cant call NumByteAvailable but interesting is if you remove -WG param you can see <span style="color: rgb(43, 73, 125); line-height: 1.25; background-color: rgb(232, 236, 242);">Enter password:</span> it will write in CMD that opens with program it self from Lazarus.<br></div>
<div class="signature"> <br></div>
<div class="signature">Regards,<br></div>
<div class="signature">Ara<br></div>
<div> </div>
</div>
<div> </div>
<pre>
--
http://www.fastmail.com - Same, same, but different...
</pre>
</body>
</html>