title: Python Paramiko - Run command
body: <p>I'm try to run this script:</p>
  
  <pre><code>hostname = '192.168.3.4'
  port = 22
  username = 'username'
  password = 'mypassword'
  y = "2012"
  m = "02"
  d = "27"
  
  if __name__ == "__main__":
     s = paramiko.SSHClient()
     s.load_system_host_keys()
     s.connect(hostname, port, username, password)
     command = 'ls /home/user/images/cappi/03000/y/m/d'
     s.close
  </code></pre>
  
  <p>The question is:
  how can I put the variables <code>y</code>,<code>m</code>,<code>d</code> into the variable <code>command</code> ?</p>