I'd like to have each thread display status information in the Terminal window, e.g.:
--------------------------------Terminal---------------------------------
Thr1 16:12:07: Uploading 'mysamplefile' (890.0 KB) to 'myhost.com' ################################## Thr2 16:10:07: Uploading 'myBIGsamplefile' (99.1 MB) to 'myhost.com' ################# Thr3 16:05:08: Uploaded 'lastfile' (5.1 MB) to 'ftpserver.com'
Thr4 16:13:06: Uploading littlefile' (44.8 KB) to 'anotherhost.com' ##########################
-------------------------------------------------------------------------
The # symbols above would be the hash output from Net::FTP as it uploads ...
Ideally, I'd like to have the window have a fixed display (no scrolling) and always output the information from a specific thread in a specific position. In other words, Thread 1 gets the first 2 lines, Thread 2 gets lines 3 and 4, etc.
The script right now is not threaded, and using the hash output from Net::FTP works great - divide filesize by 100 and set that to your hash value to get a great text-based progress bar.
How could I put information into a static display like this? And could I still use the Net::FTP progress bar?
Suggestions appreciated.
Thanks, Dan
