Solved

Perl TFTP Script Help

Posted on 2006-11-20
4
706 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now