CRON scheduled task that does not run

In this article, I will explain how to fix the issue of CRON spots not running on Linux.

I have been facing this problem to set up a backup script for the site.

Execute the command:

crontab -l

This command should return you the list of scheduled tasks.

Depending on the commands, the PATH variable for users with root rights must be changed.

run the command:

crontab -e

Add at the beginning:

PATH=/usr/sbin:/usr/bin:/sbin:/bin

Your crons should be running on time.

Romain Drouche

Romain Drouche

System Architect | MCSE: Core Infrastructure

An IT infrastructure expert with over 15 years of hands-on experience. Currently serving as a Systems and Network Project Manager and Information Systems Security (ISS) Lead, I leverage my expertise to ensure the reliability and security of technological environments.

GHinM▶