Hi guys,
I'm trying to write a script to copy a file from a network source to a local hard drive, and determine how long it will take. The idea behind this is to determine if there's some problem with some upper level switches. The file should copy in ~30 seconds or so, maybe a minute on older machines, so if the estimated time of completion is much higher than that (say ten minutes or so), then there's a problem.
I don't want the user to have to wait the full ten minutes to see if there's a problem on his end, so I'd like to check the estimated time for the file to finish copying without wasting the full copy time.
Any ideas?
Thanks,
FK
I'm trying to write a script to copy a file from a network source to a local hard drive, and determine how long it will take. The idea behind this is to determine if there's some problem with some upper level switches. The file should copy in ~30 seconds or so, maybe a minute on older machines, so if the estimated time of completion is much higher than that (say ten minutes or so), then there's a problem.
I don't want the user to have to wait the full ten minutes to see if there's a problem on his end, so I'd like to check the estimated time for the file to finish copying without wasting the full copy time.
Any ideas?
Thanks,
FK