参考: https://unix.stackexchange.com/questions/386545/nohup-failed-to-run-command-permission-denied
nohup: failed to run command ‘/for.sh’: Permission denied
- 确保shell脚本是
#!/bin/sh
开头 - 更改脚本文件的权限:
chmod +x ./for.sh
参考: https://unix.stackexchange.com/questions/386545/nohup-failed-to-run-command-permission-denied
#!/bin/sh
开头chmod +x ./for.sh
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。