我目前在我的快捷方式下有这个
C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -
在那之后我必须输入
cd x:
ENTER
然后我运行一个curl
不会改变的脚本。
我试图通过运行以下命令来自动化它,但它似乎不起作用
我的 SH 文件
#!/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;'
这就是我在 CMD 中运行的
mintty.exe --exec 'c:/cygwin/bin/test.sh'
cygwin 弹出 2 秒然后消失。
请帮忙
更新
新错误
$ /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