Next problem. Now that I have the script working, I want to run it as a CRON job.
I am using cpanel and when the crontab runs, I get a permission denied error on each of the 4 log files in the script.
My log files are set as:
-rw-r--r-- 1 root root
My script is set as:
-rwxr-xr-x 1 user user
I believe it has something to do with the the cPanel user not being 'root'. So I changed my script to:
-rwxr-xr-x 1 root root
I still get permission denied on the 4 files.
Any ideas on how I can get a cPanel CRONTAB to run in the case?