Code Sample |
DR1='pc/share1 pc/share2 etc' for ITEM in $DR1 do 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" exit_sub fi done |