Posted on 1997-06-06
I am trying to write an implementation of a tftp client and
would be really grateful for any help and/or sample code anyone could provide.
Initially all that is required is the ability to "get" files
in octet mode.
The reason: I need to collect files which are produced in real time on an hourly basis. Spawning tftp commands means running tftp, closing it, reading errors and, if required, spawning a repeat of the same tftp command if a recoverable error has occured (such as the file not being ready - not unusual to have this occur up to thirty times). For performance gains I could open a socket and perform all recovery within perl and not have the overhead involved of running tftp multiple times.
I have the RFC and Network Programming by Stevens with an example of a tftp client/server. What I would really like is an example of Perl doing this kind of thing. I am a DBA - my knowledge of sockets and Perl is sadly lacking! I am also looking into using "expect" to run the tftps but have no idea about its performance.
Hope this makes more sense now.
I thought I would be emailed with the reply - I have not been checking the site. Could you e-mail me if the answer is updated? (Michael.Cameron@MCI.com)
Thanks in advance