Ubuntu-16.04 [SOLVED]: Cron not running in Ubuntu 16.04

Ubuntu-16.04 [SOLVED]: Cron not running in Ubuntu 16.04

Home Forums Ubuntu 16.04 Ubuntu-16.04 [SOLVED]: Cron not running in Ubuntu 16.04

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36644

    Anonymous

    QuestionQuestion

    Following is my cron on Ubuntu 16.04. I tried running the script manually and did not get any error but it won’t run automatically. Can anyone tell me where I’m going wrong.

    */1 * * * * http://app.example.com/dosomething/example_method
    

    P.S. I want the script to run on its own every 1 minute.

    #36645

    Anonymous

    Accepted AnswerAnswer

    You seem to be missing the command to execute. Perhaps you want something like the following.

     curl http://app.example.com/dosomething/example_method
    

    Also, cron jobs that generate output or an error message and send it by mail, so check the email of the account under which the job is scheduled to run, so see what the problem is.

    Source: https://stackoverflow.com/questions/47959394/cron-not-running-in-ubuntu-16-04
    Author: Diomidis Spinellis
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.