Umm, it was only an idea, i think you have the reason ...
A lot time ago, i've made a little script in 'Expect' a TCL extension, this expects for patterns or keyword of your program and feed that program with the data you want... maybe the Expect module for perl will help ...
good luck
perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'
| [reply] [d/l] |