title: how to automate cygwin and mintty
body: <p>I currently have this under my shortcut</p>
  
  <p><code>C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -</code></p>
  
  <p>after that is run i have to type in</p>
  
  <p><code>cd x:</code><kbd>ENTER</kbd></p>
  
  <p>then i run a <code>curl</code> script which does not change. </p>
  
  <p>I tried to automate it by running the following command but it does not seem to work</p>
  
  <p>my SH file</p>
  
  <pre><code>#!/bin/bash
  
  cd x:
  curl http://thedomain.com/update.json --connect-timeout 10000 --max-time 10000 --data-binary @jsonfilename -H 'Content-type:application/json;charset=utf-8;X-Vendor-Email=myemail@.com;'
  </code></pre>
  
  <p>this is what i run in CMD</p>
  
  <pre><code>mintty.exe --exec 'c:/cygwin/bin/test.sh'
  </code></pre>
  
  <p>cygwin popup for 2 seconds and disappear.</p>
  
  <p>please help</p>
  
  <p><strong>update</strong></p>
  
  <p>New error</p>
  
  <pre><code>$ /bin/test.sh
        0 [main] bash 12000 child_info_fork::abort: cygreadline7.dll: Loaded to different address: parent(0x3B0000) != child(0x320000)
  /bin/test.sh: fork: retry: Resource temporarily unavailable
        0 [main] bash 12052 child_info_fork::abort: cygreadline7.dll: Loaded to different address: parent(0x3B0000) != child(0x2B0000)
  /bin/test.sh: fork: retry: Resource temporarily unavailable
        0 [main] bash 9304 child_info_fork::abort: cygreadline7.dll: Loaded to different address: parent(0x3B0000) != child(0x3A0000)
  /bin/test.sh: fork: retry: Resource temporarily unavailable
        0 [main] bash 9036 child_info_fork::abort: cygreadline7.dll: Loaded to different address: parent(0x3B0000) != child(0x3A0000)
  /bin/test.sh: fork: retry: Resource temporarily unavailable
        0 [main] bash 9588 child_info_fork::abort: cygreadline7.dll: Loaded to different address: parent(0x3B0000) != child(0x3C0000)
  /bin/test.sh: fork: Resource temporarily unavailable
  </code></pre>