Skip to content
Automatisering

Automating with Cron

Not every workflow is event-driven. With Cron you start tasks at a fixed time — and with the Cron Scheduler in Griffin Auto you drive Switch on a fully time-based schedule.

15 February 2026 · by Germen Kroon

Automation in print workflows is often event-driven: a file comes in and something happens. But not all tasks depend on input — some actions you simply want to run at a fixed time. Think of batch processing, cleaning up folders or running heavy processes outside production hours. That's where Cron comes in.

What is Cron?

Cron is a time-based scheduler that originated on Unix systems some 50 years ago. With it you run tasks on a fixed schedule: every hour, every night, every Monday or, say, every 15 minutes. The schedule is captured in a cron expression of five parts: minute, hour, day-of-month, month and day-of-week. A few examples:

  • 0 * * * * → every hour;

  • 0 22 * * * → every day at 22:00;

  • */15 * * * * → every 15 minutes;

  • 0 6 * * 1-5 → every weekday at 06:00.

The advantage of Cron: simple, predictable and very flexible.

Applying Cron in practice

In production environments Cron is often used for tasks that don't need to run continuously:

  • Nightly batch processing;

  • Periodically cleaning up folders;

  • Processing collected jobs in one go;

  • Generating reports or exports;

  • Heavy processes outside peak hours.

Test Cron before use

Because cron expressions are compact, a small mistake is easily made. So test them at https://crontab.guru: enter a line and instantly see in plain language what it does. Highly recommended before you put a schedule into production, so you're sure the workflow starts at the right moment.

Cron Scheduler in Griffin Auto for Switch

In Griffin Auto (the Enfocus Switch app) you can use Cron directly in the workflow too. This gives Switch a fully time-driven start mechanism. The Cron Scheduler is set via the JSON configuration; once the set time is reached, Griffin Auto activates itself — without a file having to arrive. This enables workflows such as:

  • Collect files during the day, process them at night;

  • Check every hour whether a folder is ready for production;

  • Run weekly maintenance automatically;

  • Combine time-driven logic with filtering and conditions.

Griffin Auto thus acts as the director: it decides when the nest starts.

Cron Scheduler in Enfocus Griffin Auto

In this example each nest requires at least 75% coverage, runs every weekday from 9–12, and forces all output at 15:00 (you don't want anything stuck forever):

  • 0 9,10,11,12 * * 1-5 — every full hour at 9:00, 10:00, 11:00 and 12:00, Monday to Friday;

  • 0 15 * * 1-5 — every weekday at 15:00;

  • The 'force' is a handy Griffin Auto function that forces all nests to run.

Written by Germen Kroon · Tips & Tricks for PrintMatters.

© 2026 Germen Kroon.

Related articles

Tech 15 Jun 2025

Talking to machines

Presses and finishing machines spit out data but rarely listen back. With Switch apps, barcodes and JDF you turn that monologue into a dialogue.

Read more
Automatisering 15 Feb 2025

Optimise your production process

Process optimisation does not start with software but with analysis. With the Five Whys method and the Ghent PDF Output Suite you tackle the real cause of errors.

Read more

Never miss an update?

Get the latest tips on workflow automation straight to your inbox.

By subscribing you agree to our privacy policy.