wie automatisieren von cygwin und mintty

Momentan habe ich diese unter meine Verknüpfung

C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -

danach ist Lauf ich den Typ in

cd x:ENTER

dann Lauf ich ein curl Skript, das ändert sich nicht.

Habe ich versucht zu automatisieren, indem Sie den folgenden Befehl aus, aber es scheint nicht zu funktionieren,

meine SH-Datei

#!/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;[email protected];'

dies ist, was ich ausführen in CMD

mintty.exe --exec 'c:/cygwin/bin/test.sh'

cygwin popup für 2 Sekunden und verschwinden.

bitte helfen

update

Neue Fehler

$ /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

InformationsquelleAutor nkman | 2013-04-10

Schreibe einen Kommentar