Can't execute shell script from python subprocess: permission denied

后端 未结 2 1245
夕颜
夕颜 2020-12-10 11:12

Tried googling but couldn\'t find something that relates to my particular problem. I\'m trying to run a shell script from python but the shell script wouldn\'t run because o

相关标签:
2条回答
  • 2020-12-10 11:12

    its because you don't have permission to run that script. You will need to give executable permission for that script to run.

    chmod a+x run.sh

    0 讨论(0)
  • 2020-12-10 11:18

    Check your run.sh mode, if no executable flag, set it with command

    chmod +x run.sh
    
    0 讨论(0)
提交回复
热议问题