title: copy a txt file from Unix machine to Windows machine
body: <p>I have the below shell script to copy a txt file from a Unix machine to a Windows machine in the same network:</p>
  
  <pre><code>#!/bin/sh
  HOST='localhost'
  USER='redacted'
  PASSWD='redacted'
  FILE='/los_prod/scripts/log.txt'
  
  ftp $HOST &lt;&lt;END_SCRIPT
  user $USER
  $PASSWD
  put $FILE
  quit
  END_SCRIPT
  exit 0
  </code></pre>
  
  <p>It's giving the error as:</p>
  
  <blockquote>
    <p>:connection failed.</p>
  </blockquote>
  
  <p>I am giving all the correct info in the script. What could be the reason?</p>