LinHES Forums
http://forums.linhes.org/

file copying - easy way to have LINUX time a file copy?
http://forums.linhes.org/viewtopic.php?f=13&t=12978
Page 1 of 1

Author:  graysky [ Thu Dec 14, 2006 1:51 pm ]
Post subject:  file copying - easy way to have LINUX time a file copy?

I'd like to test out my new network gear without using a stopwatch. Is there an easy way to literally time how long it takes to copy files from one location to another and when finished, report the total time?

Author:  cecil [ Thu Dec 14, 2006 2:36 pm ]
Post subject: 

Any command can be clocked with time.
Code:
time scp file user@blah.blah.blah.blah:/path/to/blah

Author:  graysky [ Thu Dec 14, 2006 3:16 pm ]
Post subject: 

Thanks man! Very cool and just what I wanted :)

Now... is there a win32 equivalent to test xfers from win32 to myth is the question!

Author:  cecil [ Thu Dec 14, 2006 4:07 pm ]
Post subject: 

I wonder what I'd kind find if I googled 'windows scp'? I wonder what would happen if I simply turned on Samba and explored my neighborhood?

Author:  graysky [ Thu Dec 14, 2006 6:32 pm ]
Post subject: 

I don't think the scp is needed... if I do a
Code:
$ time cp /path/to/file /path/to/destination
it returns the time as well. I did find a utility for win32 called robocopy.exe which works (part of the Windows Server 2003 Resource Kit Tools which is a free d/l.

Code:
E:\Test>robocopy VIDEO_TS y:\ VTS_01_1.VOB

------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows     ::     Version XP010
------------------------------------------------------------------------------

  Started : Thu Dec 14 19:29:51 2006

   Source : E:\Test\VIDEO_TS\
     Dest : y:\

    Files : VTS_01_1.VOB

  Options : /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

                           1    E:\TEST\VIDEO_TS\
100%        New File            1023.9 m        VTS_01_1.VOB

------------------------------------------------------------------------------

                Total    Copied   Skipped  Mismatch    FAILED    Extras
     Dirs :         1         0         1         0         0         0
    Files :         1         1         0         0         0         0
    Bytes : 1023.97 m 1023.97 m         0         0         0         0
    Times :   0:00:47   0:00:47                       0:00:00   0:00:00

    Speed :            22449553 Bytes/sec.
    Speed :            1284.573 MegaBytes/min.

    Ended : Thu Dec 14 19:30:39 2006


Thanks again for the help!

Author:  turpie [ Thu Dec 14, 2006 9:34 pm ]
Post subject: 

graysky wrote:
Now... is there a win32 equivalent to test xfers from win32 to myth is the question!


Do you need to run the command from the Windows side?
or could you just try:
time cp user@RemotePC:/path/to/blah /path/to/destination

Author:  graysky [ Fri Dec 15, 2006 1:34 pm ]
Post subject: 

Thanks for the post, turpie. I actually found that robocopy works great for my purposes.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/