Friday, May 22, 2015

Turn off smbclient mget prompt

Ran into this one today - When you attempt to mget (get multiple files) using the smbclient it asks you to confirm each file. Which is a little annoying when you want to script the process. The work around is to issue the smbclient command "prompt" prior to the mget. To script it, would look like this:

# smbclient //server/share -A smb_authentication_file -c "prompt; mget *.csv"

1 comment:

  1. Thank you much
    You are the best!!!