Cron Job Not Running Fix

Cron failures often come from environment differences rather than the command itself. Reproduce with the same shell, paths and user.

Symptoms

  • Command works manually but not from cron.
  • No output appears in the expected log file.
  • Job runs at the wrong time or not at all.

Likely causes

  • Cron has a minimal PATH and different working directory.
  • The expression uses the wrong five-field schedule.
  • Permissions, shell or timezone differ from the manual test.

Fix steps

  1. Use absolute paths for binaries and scripts.
  2. Redirect stdout and stderr to a log file.
  3. Validate the cron expression and test as the same user.

Verify the fix

  • Check system cron logs.
  • Run the command with the same user and environment.
  • Temporarily schedule every minute while testing, then restore the intended schedule.

FAQ

Does cron use my terminal PATH?

Usually no. Define PATH or use absolute paths.

Does classic cron include seconds?

No. Classic Unix cron uses five fields without seconds.

Related tools and guides

Last updated: May 18, 2026