i am getting a 406 error page with this cron.
i've updated the cron to use wget instead, but i am still not getting the output from the page. here is the new crontab:
/usr/bin/wget "https://abc.com/cron/sendBulletinEmails.php" >> /home/abc/public_html/cron/logs/sendBulletinEmails.log
however, this is not even using the log file. i get an email instead. here is the email output:
--09:20:01-- https://abc.com/cron/sendBulletinEmails.php => `sendBulletinEmails.php' Resolving abc.com... 220.127.116.11 Connecting to fin-iq.com|18.104.22.168|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] 0K 122.58 B/s 09:20:02 (122.58 B/s) - `sendBulletinEmails.php' saved 
i've also tried this crontab (to get the right output):
/usr/bin/wget --append-output=/home/abc/public_html/cron/logs/sendBulletinEmails.log "https://abc.com/cron/sendBulletinEmails.php"
but, this too gives me that same log as the email. the page outputs text, which is what i want logged in my log file. any ideas as to how to make that work?
here is the crontab (copied from cPanel):
* * * * * GET https://abc.com/cron/sendBulletinEmails.php >> /home/abc/public_html/cron/logs/sendBulletinEmails.log
here is the log:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>406 Not Acceptable</title> </head><body> <h1>Not Acceptable</h1> <p>An appropriate representation of the requested resource /cron/sendSurveyEmails.php could not be found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>
also, when i run it from my own browser, it works.
any ideas as to why this is happening? thanks =)