Hi,
I was wondering if anyone could shed some light on a problem I am having with
the DOS DIR command on a SMB share.
I have a batch script that copies files from one mapped network drive to
another. To check that the copy has been sucsessful it creates two text files
with the output of the command "dir /s <directory> | find "File"" on both
directories.
We have recently upgraded one of the servers from Windows to Samba running on
RHEL 5. For some reason now the output of the dir command comes in a different
order and the total byte size is different on the samba share than the native
Windows share thus breaking the check. All the file appear to by copied
correctly though.
I have attached a sample of what happens.
Any help is greatly appreciated.
Regards,
Braxton Neate
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
4 File(s) 484,509 bytes
9 File(s) 15,456,617 bytes
32 File(s) 103,890,559 bytes
9 File(s) 9,493,444 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
1 File(s) 501 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
Total Files Listed:
55 File(s) 129,325,630 bytes
0 File(s) 0 bytes
4 File(s) 488,605 bytes
32 File(s) 103,890,559 bytes
9 File(s) 15,456,617 bytes
9 File(s) 9,493,444 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
0 File(s) 0 bytes
1 File(s) 501 bytes
Total Files Listed:
55 File(s) 129,329,726 bytes
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba