参考: 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
2023-09-28 19:41:40
参考: https://unix.stackexchange.com/questions/386545/nohup-failed-to-run-command-permission-denied
#!/bin/sh
开头chmod +x ./for.sh