I have about 5 different PHP scripts that must be run by the server continuously even with the terminal closed.
How do I run the 5 scripts once via nohup, each with a log of what it generated, and be able to close the terminal?
I tried to run the script below and an error occurs.
sudo nohup php send-mail.php > mail.txt
-bash: mail.txt: Permission denied
nohup php send-mail.php > sudo mail.txt
-bash: sudo: Permission denied