[英]Not being able to run bash script on windows
我正在努力在Windows上运行bash脚本,但是我收到的消息是“很抱歉,仅支持Linux和MacOS。”
我已经安装了Cygwin和Clink,以便能够在Windows平台上运行sh脚本,但仍然无济于事。
这是我的bash脚本,
#!/bin/bash
for ((j=0;j<10;j++)); do
rtg map -i sample_NA19240/SRR003988 -t hg19 -o map_sample_NA19240/SRR003988- $j --start-read=$[j*1000000] --end-read=$[(j+1)*1000000]
done
在您使用的程序“ rtg”中:
# Pre-flight safety-belts
if [ "$(uname -s)" != "Linux" ] && [ "$(uname -s)" != "Darwin" ]; then
# If you comment this check out you are on your own :-)
echo "Sorry, only Linux and MacOS are supported."
exit 1
您可以尝试“建议”,即删除文件安装程序/ rtg中的检查。 如果有效,那么您很幸运。 否则使用vm或询问rtg作者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.