I have a feature that compares and updates data from different services using various APIs. I set it up to trigger based on url ACT id and a key. The script works fine and now I want to make it run automatically two times per day.
To do this I wanted to use a cron job. My webserver is HostGator, dedicated server, which has a cron job section in the cPanel. I've set up a test to run every minute and return the results to me via email. This is not working and I have changed the command to many different things, none of which work.
The script is set up to return a reply of
testing when there is the ACT ID and the key of
test in the url, so
I've tried setting this up as a cron job using cURL in several different ways.
curl --silent --compressed https://www.domain.com/ACT=42&key=test
curl -s "https://www.domain.com?ACT=42&key=test"
Nothing is sending an email so I have no idea if this is even working.
When I contacted HostGator support the rep gave me a bunch of links on how to set up a cron job, which didn't help. I've done this before on a shared HostGator server for an import addon and it worked fine, ran the script, got the email, etc. But for this I'm not getting anything and I'm at a bit of a loss.
Any help would be greatly appreciated.