On 2004-08-25, P Gentry <(E-Mail Removed)> wrote:
: Frank da Cruz <(E-Mail Removed)> wrote in message
: news:<(E-Mail Removed)>.. .
: ...
:> Automating an FTP session by sending FTP protocol commands with 'expect'
:> would be a novel approach. A more sensible one is here:
:>
:>
http://www.columbia.edu/kermit/ftpscripts.html
:
: Looks good -- thanks.
:
: But if working from a log file ... ? I'll have to look into it.
:
: Anyway, your link looks generally better (much better) -- not that I
: script ftp sessions except as lab exercises for the students to
: introduce them to expect ;-)
:
Then you might have more fun with Kermit too. You can easily write a
Kermit script that reads the logfile (FOPEN, FREAD, FCLOSE), extracts the
FTP protocol commands, and translates them to the equivalent FTP client
commands using (say) an associative array:
http://www.columbia.edu/kermit/ckermit70.html#x7.10.10
See the Kermit script tutorial and library:
http://www.columbia.edu/kermit/ckscripts.html
- Frank