cron job once every 2 hours code example Example 1: cron every 3 hours 0 */3 * * * Example 2: cron every two hours 0 */2 * * *