title: ssh command not running perl script
body: <p>I have following perl script </p>
  
  <pre><code>#!/usr/bin/perl
  $userinput =  &lt;STDIN&gt;;
  chomp ($userinput);
  while ( $userinput ne "DONE")
  {
          print STDOUT "User typed -----&gt;  $userinput\n";
          $userinput =  &lt;STDIN&gt;;
          chomp ($userinput);
  }
  </code></pre>
  
  <p>I have copied this on on unix box, locally this works fine but when I try to run this perl script remotely from another box using ssh, it does not work.</p>
  
  <p>I am running this script using following command.</p>
  
  <pre><code>ssh username@hostname /tmp/testremote.pl
  </code></pre>
  
  <p>It just hangs on the STDIN and does not return anything.</p>
  
  <p>Any idea why this is not working?</p>