centos使用shell脚本执行python文件报No such file or directory
1. 执行的脚本叫 run_script.sh,脚本内容如下 #!/bin/bashsource /opt/xxxx/xxxx.cfg/opt/venv/bin/python /opt/xx/xxx/xxxx/xxxxxx.pyecho "End!"2. 我是通过 apache common-exec 包下的 CommandLine(java)执行的 commandline = CommandLine.parse("/bin/bash" + " " + "run_script.sh");3. 执行后报 No...
more...