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…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...