title: Unable to run shell script with ktutil command from Windows using PLINK
body: <p>I have a small shell script <code>test.sh</code> in Unix with the following content:</p>
  
  <pre><code>cd /usr/kerberos/sbin
  echo l | ktutil
  echo quit | ktutil
  </code></pre>
  
  <p>Its running fine in Unix and giving the output of <code>ktutil</code>. However when I run from Windows using the <code>PLINK.EXE</code> of PuTTY, its not running the <code>ktutil</code> command properly. The output it gives is the usage of <code>ktutil</code>.</p>
  
  <blockquote>
    <p><code>Usage: ktutil [-hv] [--version] [--help] [--keytab=keytab to operate on]
         [-k keytab to operate on] [--verbose] command
      -k keytab to operate on, --keytab=keytab to operate on keytab
      -v, --verbose</code></p>
    
    <p><code>Usage: ktutil [-hv] [--version] [--help] [--keytab=keytab to operate on]
         [-k keytab to operate on] [--verbose] command
      -k keytab to operate on, --keytab=keytab to operate on keytab
      -v, --verbose</code></p>
  </blockquote>
  
  <p>The command I use in Windows is the following:</p>
  
  <pre><code>PLINK.EXE user@server /home/user/test.sh
  </code></pre>