cPanel & WHM Version 100 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Add PATH variable to crontab

Jason Brown shared this idea 20 months ago
Open Discussion

As a user of the cPanel interface, I would like the "Add New Cron Job" feature to add the user's current PATH variable to the crontab so that the exact link to binaries do not need to be called.

Currently, by default, if you add a cronjob, the only PATH used is the following:


This causes crons dependent on binaries and scripts that aren't in these locations to require the full path.

An example of a typical user's PATH would be this:


Implementing this change would allow users to set "git" as the cron command rather than /usr/local/cpanel/3rdparty/lib/path-bin/git

Leave a Comment
Attach a file