Answers: <p>The correct answer is in the comments by Tensibai. The following worked:</p>
  <pre><code>cron 'Check-In to Chef Manage every 5 minutes' do
    minute '*/5'
    command 'chef-client'
    action :create
  end
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2023-03-30T04:15:02.170Z
Answers: 2023-03-30T04:15:02.170Z
Answers: user938e3ef455
Body: <p>Is it possible to set cron to run per minute? I have tried two ways below with no luck. I have reviewed the documentation: <a href="https://docs.chef.io/resources/cron" rel="nofollow noreferrer">https://docs.chef.io/resources/cron</a>. The way the documents reads to me is that I can only run cron in a specific minute within a specific hour. Like 8:05. Rather than every single 5 minutes.</p>
  <pre><code>  cron 'Check-In to Chef Manage every minute' do
        minute '*'
        command 'chef-client'
        action :create
      end
  </code></pre>
  <pre><code>  cron 'Check-In to Chef Manage every minute' do
        minute '0'
        command 'chef-client'
        action :create
      end
  </code></pre>
  
Comments: CC BY-SA 4.0
Comments: 2023-03-29T15:15:03.830Z
Comments: The cron resource really maps what a crontab entry does, hence why it accepts a string, so `minute '*/5'` or `minute '0,5,10,15,20,25,30,35,40,45,50,55'` should work.
Comments: Tensibai
Tags: <chef>
Title: How to use Chef cron resource to run in minute intervals
UserDisplayName: user938e3ef455
ThreadText: # How to use Chef cron resource to run in minute intervals
  
  (Asked by: username_0 on 2023-03-29)
  
  Is it possible to set cron to run per minute? I have tried two ways below with no luck. I have reviewed the documentation: <https://docs.chef.io/resources/cron>. The way the documents reads to me is that I can only run cron in a specific minute within a specific hour. Like 8:05. Rather than every single 5 minutes.
  
  ```
    cron 'Check-In to Chef Manage every minute' do
        minute '*'
        command 'chef-client'
        action :create
      end
  
  ```
  
  ```
    cron 'Check-In to Chef Manage every minute' do
        minute '0'
        command 'chef-client'
        action :create
      end
  
  ```
  
  **Tags:** chef
  
  > **Comments:**
  > **username_1**: The cron resource really maps what a crontab entry does, hence why it accepts a string, so `minute '*/5'` or `minute '0,5,10,15,20,25,30,35,40,45,50,55'` should work.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-03-30. Score: 0 | Accepted answer
  
  The correct answer is in the comments by username_1. The following worked:
  
  ```
  cron 'Check-In to Chef Manage every 5 minutes' do
    minute '*/5'
    command 'chef-client'
    action :create
  end
  
  ```
  
  
  ---
  
  