title: cygwin binary exec format error
body: <p>I have a script file that I was given to run in windows using Cygwin. When I try to use this file I get the following error </p>
  
  <blockquote>
    <p>-bash: /sigdet/filename: cannot execute binary file: Exec format error.</p>
  </blockquote>
  
  <p>sigdet is the folder within the Cygwin directory that I have the script. Rawdata is the name of the directory with the raw data files that the script is supposed to analyze. </p>
  
  <p>To try and solve this, I have changed the file permissions, I have checked to make sure that it is on a 64 bit machine and the script appears to have compiled on a 64-bit machine. After these steps, I don't know what else the problem could be. Here are the commands I've entered:</p>
  
  <p>I first changed the directory like so:</p>
  
  <blockquote>
    <p>$ cd /sigdet/</p>
  </blockquote>
  
  <p>Then I ran the script that is suppsed to work:</p>
  
  <blockquote>
    <p>$ /sigdet/filename -i rawdata</p>
  </blockquote>
  
  <p>Does the script file need to have an extension in windows? I've tried changing it to a .sh extension with no luck. I'm told that it just works on other windows machines just how it is.</p>
  
  <p>Thanks to anyone that can help with this.</p>