Written by James McDonald

June 30, 2010

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!

3 Comments

  1. LuMa

    THANKS!
    Exactly what i searched for 🙂

    Reply
  2. R

    Thanks, just what I needed

    Reply
  3. ma

    thanks!it helps me a lot!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…