issue with cron job

1830 views php
6

I am trying to use a cron job to preform daily calculation using url (GET 'https://www.t......com/bonus/go') and with the result link to my email.

but i got this result in my email please help

    </head>
    <body>
                    <div id="sf-resetcontent" class="sf-reset">
                <h1>Sorry, the page you are looking for could not be found.</h1>

            </div>
    </body>
</html>

answered question

does the page load in a web browser?

1 Answer

4

This mean that the URL that you are pointing is not valid, doesn't exists or is not reachable from the context where the cron is running.

Please check if the URL is displayed on the web browser. If you haven't a web browser where the cron is running check with curl in command line:

$ curl -L {your-url}
  • The -L is to allow curl to follow redirects.

posted this

Have an answer?

JD

Please login first before posting an answer.