An illustration of the idea, this crontab configuration:

    $ crontab -l | grep touch
    */10     *       *       *       *       touch /tmp/normal-$(date +\%s)
    */~10    *       *       *       *       touch /tmp/mixedup-$(date +\%s)

Resulted on my local machine in the following:

    $ ls -lahtr /tmp/{mixedup,normal}*
    -rw-r--r--  1 job  wheel     0B May  3 17:46 /tmp/mixedup-1683135961
    -rw-r--r--  1 job  wheel     0B May  3 17:50 /tmp/normal-1683136201
    -rw-r--r--  1 job  wheel     0B May  3 17:56 /tmp/mixedup-1683136561
    -rw-r--r--  1 job  wheel     0B May  3 18:00 /tmp/normal-1683136801
    -rw-r--r--  1 job  wheel     0B May  3 18:06 /tmp/mixedup-1683137161
    -rw-r--r--  1 job  wheel     0B May  3 18:10 /tmp/normal-1683137401
    -rw-r--r--  1 job  wheel     0B May  3 18:16 /tmp/mixedup-1683137761
    
Kind regards,

Job

Reply via email to