I haven't used it myself, but Expect was made to solve this kind of problem. I imagine you would be well served to investigate that tool/lib.
,welchavw
In reply to Re: Buffer, buffering my problem
by welchavw
in thread Buffer, buffering my problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |