Chop to better understand the Crontab

How many of us have it happened that we need to run a script every so often, or every certain day, and we get entangled with it crontab?

Well, if this is your case, some time ago I made this cheat sheet that will help us better understand how it works. crontab, so that it will be easier to schedule the execution of our scripts. Enjoy!


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Gregory Swords said

    Very good! Thanks 🙂

  2.   cyberalejo17 said

    Ohh! thank you very much, very helpful!

  3.   luweeds said

    Very useful and practical, thank you very much!

  4.   Edwin said

    To favorites that I always forget xD

    1.    KZKG ^ Gaara said

      HAHAHAHA 😀

  5.   Carlos-Xfce said

    🙁 I wish I could understand this kind of information. Does anyone know of "Linux Scripts for Dummies" ?, heh heh.

    1.    elav <° Linux said

      Hahaha let's see what we can do 😀

  6.   103 said

    In ASCII

    minutes [0-59]
    | hours [0-23]
    | | day of the month [1-31]
    | | | month [1-12]
    | | | | day of the week [0-6, 0 = Sunday]
    | | | | | command
    00 16 * * * /home/user/script.sh

    1.    elav <° Linux said

      Nice !!!

  7.   103 said

    Ohhh, sorry for the previous comment, I suspected it might happen, but who knew? It was the same idea of ​​the original entry but only with ASCII characters, I like the idea of ​​having it all in text and not depending on images even when it says that an image is worth a thousand words.

    1.    elav <° Linux said

      No problem, you just missed the user who runs the script 😀

  8.   103 said

    The problem is that the tabs are not seen and everything is stacked (I don't know how to translate it including the necessary tabs and spaces) and yes, I was missing the user who executes the script, could you fix it?

  9.   103 said

    Sorry for the number of responses, this is what it should look like:

    http://i50.tinypic.com/13z2yab.gif

    Clarify that the day of the week field can be separated by commas, for example:

    0 6 * * 0,3 root /root/script.sh

    In this case the command will run on Sunday and Wednesday at 6 am

  10.   angel blade said

    Very similar to this post http://linuxconfig.org/linux-cron-guide

  11.   Algave said

    Very useful and I have been breaking my head with crontab, grace! 🙂

  12.   Paul said

    Impressive, besides being very visual it serves a lot. Very good

  13.   ariki said

    OffTopic:
    what is chop ??? Here in chile chuleta is a cut of pork that can be roasted, grilled, French-style added and my favorite the kayser, uff, English-style breaded cutlet stuffed with cheese !! hahaha greetings and thanks for the info

    1.    elav <° Linux said

      Hahahaha, here a chop is almost the same hahaha ...

    2.    KZKG ^ Gaara said

      HAHAHA yes, this is also a chop.
      Well ... chop is also called in other countries that piece / piece of paper that gets us out of trouble at a certain time.

      1.    Mystog @ N said

        chop = goat = fix = the piece of paper that many hide in their belt, watch, pants, shirt, shoes etc when they go to an exam at school… What a shame! I never did that !!!… .ehem…. ¬¬

        1.    ariki said

          Here the piece of paper is called TORPEDO hahaha I never took my red ones off with my forehead held high hahaha greetings

  14.   msx said

    It was perfect for you, I never get tired of consulting it!
    +1

  15.   rj1479@gmail.com said

    … Excellent… <º

  16.   Lito Black said

    Very good! This format (graphic and text as well), can it be extended to any command?

    I never tire of learning from this community.

    Luck!

  17.   sinnermann said

    you're a jenio ... and yes, i wrote Jenio, with J for FUCKING genius

  18.   Juanca said

    It would be very good to insert a line below with an example of how to configure a task in the conf file.
    Thank you