Joined: Sep. 2005
||Posted: Dec. 16 2005,12:31
I've found smbclient to work very well. I always wanted to copy the same folders, so wrote a bash script that passes all the 'stuff' to smbclient each time. Here's the meat of the script.
|Code Sample |
|DR1='pc/share1 pc/share2 etc'|
for ITEM in $DR1
if smbclient //$ITEM -Uuser%password -c "lowercase; prompt; recurse; mask *; mget *"
then echo "`ls -r *|wc -l` files copied from $ITEM"
else echo "Failed to copy files from $ITEM"