2015-12-20 39 views
0

我努力地在Windows上运行bash脚本,但我得到的消息bash脚本“对不起,只是Linux和MacOS的支持。”不能够在Windows上运行

我已经为了能够在Windows平台上运行sh脚本安装了Cygwin和碰杯但它仍然是无济于事的。

这里是我的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 

回答

1

它在你正在使用的程序, “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中。如果它有效,你很幸运。否则使用虚拟机或询问rtg作者。

+1

+1用于诊断的问题;还有另外一种选择,但是:该实用程序是在一个(64位只)Windows版本太 - 从[这里]下载(https://github.com/RealTimeGenomics/rtg-tools/releases)。 Cygwin能够从Bash脚本调用Windows CLI。 – mklement0

+0

感谢smarquis和mklement!其实我使用RTG的Windows版本,但它仍然给我同样的信息。也许该程序未配置为使用该bash脚本在Windows上运行。 –

+0

没错,在Windows下你需要调用提供rtg.bat,而不是RTG bash脚本。 – smarquis

相关问题