Subject: Re: OFF TOPIC: Controlling ftp via ksh or csh
To: None <alexander@frolkin.demon.co.uk>
From: Phillip Rulon <pjr@gnu.org>
List: netbsd-help
Date: 03/21/2000 17:10:14
ksh has a method for communicating with a coprocess which we
used a lot when I was at IBM.  It works a lot like expect
except that it's a lot more sensitive to carriage control
It will do what you want I'm fairly sure.  I don't have
ksh anymore so I can't send you working code but it was 
something like:

exec |<some program>
read -up foo
write -up $bar

YMMV, man ksh is your friend.

pjr