Discover Centmin Mod today
Register Now

Crontab first value

Discussion in 'System Administration' started by pamamolf, Nov 9, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    12:59 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    On crontab i know that the first value (*) is minutes and it can be set from 0-59

    But i don't know what it does if used as:

    1) */1
    2) /1

    Can you please let me know what it will do in case 1 and what in case 2 ?

    Thank you !
     
  2. rdan

    rdan Premium Member Premium Member

    4,374
    1,053
    113
    May 25, 2014
    Ratings:
    +1,524
    Local Time:
    6:59 PM
    Mainline
    10.2
  3. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    12:59 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Thanks for the link RoldanLT :)

    But i just want to know for those two scenarios only :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,947
    8,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,446
    Local Time:
    8:59 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    read crontab(5): tables for driving cron - Linux man page and CronChecker

    quick google 35.1.1. Configuring Cron Tasks

     
    • Like Like x 1
  5. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    12:59 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Thanks George so if i add in the first value in minutes this:

    */1

    It will run every minute or every fist minute of the hour?
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,947
    8,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,446
    Local Time:
    8:59 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    * = */1 both the same for minutes
     
  7. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    12:59 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    yes ok both are the same but does this run every minute?
     
  8. eva2000

    eva2000 Administrator Staff Member

    36,947
    8,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,446
    Local Time:
    8:59 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    read the linked manual/info as to what * means ;)
     
    • Like Like x 1
  9. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    12:59 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok got it thanks :)
     
..