參考: 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
nohup: ignoring input and appending output to ‘nohup.out’

