简体   繁体   中英

Not being able to run bash script on windows

I am trying hard to run a bash script on windows but the message I am getting is "Sorry, only Linux and MacOS are supported."

I have installed Cygwin and Clink in order to be able to run sh scripts on windows platform but still it is of no avail.

Here is my bash script,

#!/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

It's in the program you are using, "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

You can try the "suggestion", that is, remove the check in the file installer/rtg. If it works, you are lucky. Else use a vm or ask the rtg author.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM