I wrote a shell script using python and it successfully run by command bash download_R1.sh
on my terminal.
I wanted to test if subprocess can do the same thing in python because I would like to integrate a pipeline in python script. Here is the subprocess part of my code:
downR1 = subprocess.call('./download_R1.sh')
It failed to run the script with following error message:
Error message:
PermissionError: [Errno 13] Permission denied: './download_R1.sh'
Someone suggested using chmod +x
to obtain authenitification of that script. But bash down.sh
is working. I don't know which part goes wrong.
Any advice?