Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Discussion on set up cron in Ubuntu

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 534
    Comment on it

    Hi Reader's,
    Welcome to FindNerd, today we are going to discuss on set up cron in Ubuntu.

    Sometimes, it is needed to set Cron jobs in a web application for sending push notification on a particular action and to send notify message to start any activation on a web application.

    So, Basically cron job occur when any define task is performed on a fixed time. It may perform on an hour and 24 hours according to your fixed time.

    So firstly to set cron jobs in Ubuntu go to the terminal and type:

    $ sudo crontab -e

     

    This command opens your cron configuration file. So now you can define a command to run in every line so the structure will be like below:

    minute hour day-of-month month day-of-week command

     

    let's say, if you want to set cron job in a week on Sunday 12:30 then you can follow below command:

    30 12 * * 1 /path/to/command

     

    and if you want to set cron on every 30 minutes then follow below command

    */30 * * * * /path/to/command

    After this command cron will automatically run on Ubuntu hosting.

     I hope this blog will help you to set cron job on Ubuntu.

    Thanks
     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: