smbclient - Send all files in directory
问题 I created a shell script to send files on Linux to Windows via sbmclient. smbclient //HOST_WINDOWS/D$ -U USER --pass PASSWORD -c "put /tmp/test.txt FOLDER_WINDOWS/test.txt" That works perfectly. smbclient //HOST_WINDOWS/D$ -U USER --pass PASSWORD -c "put /tmp/* FOLDER_WINDOWS" I would like to send all files at once, is it possible? 回答1: I found that it only works reliably when the local working directory is equal to the directory that you want to upload. But it's possible to specify a local