Solved

Perl TFTP Script Help

Posted on 2006-11-20
4
710 Views
Last Modified: 2008-02-01
I am working on a tftp client script that connects to a piece of wireless equipment and uploads a firmware to it by using TFTP Binary mode. I was looking for a way to do this but also if possible to get a progress status of how the transfer is going that would be great.
0
Comment
Question by:s2000lover
  • 2
4 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 17985748
For TFTP, use Net::TFTP

http://search.cpan.org/~gbarr/Net-TFTP-0.16/TFTP.pm

For progress status, what type of output were you thinking of?
0
 
LVL 39

Expert Comment

by:Adam314
ID: 17988135
You will probably have to change the TFTP.pm to get a progress.  I did something similiar with the FTP.pm module.
0
 
LVL 1

Author Comment

by:s2000lover
ID: 17993461
What i'm looking for is while its uploading the file to the wireless device that it will give some form of progress. Either a percentage of how much is upload or something that atleast give me a insight in whats going on instead of a nothing...
0
 
LVL 39

Accepted Solution

by:
Adam314 earned 125 total points
ID: 17995105
The FTP.pm module had an option to print a "." every 1024 bytes.  This is where i changed it to so it would display total bytes transferred.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delete query using perl dbi 3 108
Filtering a file to table 9 101
use google analytics code in perl script 2 80
Ned Perl Snippet to Read Files in Directory 5 74
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question