I've got a PHP script I'd like to launch when my RHEL server boots up.
Should I just add this line to /etc/rc.d/rc.local?
php -q /path/to/my/script.php > /path/to/output.txt
Or is there some better way?
I've got a PHP script I'd like to launch when my RHEL server boots up.
Should I just add this line to /etc/rc.d/rc.local?
php -q /path/to/my/script.php > /path/to/output.txt
Or is there some better way?