Problem:
Just tried to use mget to get all the files in a remote directory and it prompted me to accept each file with a y/n. This is because by default smbclient prompts to accept each file when using the mget command.
smb: \> cd PDFs
smb: \PDFs\> mget *
Get file 20100615135815.pdf?
# to get out of this you have to CTRL + C and then re-login using smbclient
The Fix:
When in an mget session turn off prompting by entering prompt before running the mget command
smb: \> prompt
smb: \> cd PDFs
smb: \PDFs\> mget *
getting file \PDFs\20100615135815.pdf of size 68489 as 20100615135815.pdf (412.9 kb/s) (average 412.9 kb/s)
Wonderbah!
THANKS!
Exactly what i searched for 🙂
Thanks, just what I needed
thanks!it helps me a lot!