I have written a Shell script that moves into a directory with some binaries files present.
What I am looking to do is transfer all the files present inside this directory.
Code:
cd /home/user/binaries
smbclient //ip.address/directory$ password -W domain -U username << ENDOFMYSMBCOMMANDS
prompt
put *
exit
ENDOFMYSMBCOMMANDS
I tried to use
put * to transfer all files - but this is not accepted.
The only other option I know of is to go one folder up, and use the command
mput binaries - but this copies everything including the folder.
How can I modify my script to only transfer the contents of the directory?