Ceci est juste un exemple. Vous pouvez essayer ceci et personnaliser selon votre condition.
# Use the hash sign to prefix a comment
# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)
# | | | +------- month (1 - 12)
# | | | | +---- day of week (0 - 7) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
#--------------------------------------------------------------------------
# Run my cron job every Monday to Friday hourly from 9:30am
30 9 * * 1,2,3,4,5 cron-data.js