title: SMB Client Commands Through Shell Script
body: <p>I have a shell script, which I am using to access the SMB Client:</p>
  
  <pre><code>#!/bin/bash
  cd /home/username
  smbclient //link/to/server$ password -W domain -U username
  recurse
  prompt
  mput baclupfiles
  exit
  </code></pre>
  
  <p>Right now, the script runs, accesses the server, and then asks for a manual input of the commands.</p>
  
  <p>Can someone show me how to get the commands <code>recurse</code>, <code>prompt</code>, <code>mput baclupfiles</code> and <code>exit</code> commands to be run by the shell script please?</p>