Turning off the smbclient mget prompt

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 *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...

WizTree

Just downloaded WizTree (not a sponsor) from https://wiztreefree.com/ It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...