Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Long download progress report

by gamache (Friar)
on Nov 16, 2007 at 17:19 UTC ( [id://651272]=note: print w/replies, xml ) Need Help??


in reply to Long download progress report

Here is how I would do it:
  • Fork a child to run the SCP (or other file transfer) process and exit.
  • From the parent, loop on the following:
    • Is the child done? If so, set progress = 100% and exit loop.
    • Set progress = current_filesize / full_filesize.
    • Sleep for N seconds.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://651272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found