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

Leave a Reply to ma Cancel reply

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…

Network speed test host to host

On Ubuntu / Debian apt-get install iperf3 On Windows download it from https://iperf.fr/iperf-download.php#windows Make...

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...