Cron command not found

Created on 5 February 2017, over 8 years ago
Updated 19 August 2025, 4 days ago

I am running this command in cron:
drush -r /home/USERNAME/public_html -l https://www.mysite.com advancedqueue-process-queue commerce_license_synchronization

However, i get an email that says this:
/bin/bash: drush: command not found

Any idea why this is?
I installed drush globally and is found at /usr/local/bin/drush/drush.php

Drush works perfect via SSH for me to add any manual commands. It is just the Cron that fails.

.bash_profile shows:

PATH=$PATH:$HOME/bin
export PATH="$PATH:/usr/local/bin/drush/drush:/usr/local/bin"

.bashrc shows:

export DRUSH_PHP=/usr/bin/php-cli
alias drush='$HOME/usr/local/bin/drush/drush'
alias drush='/usr/local/bin/drush/drush'

Any ideas?

πŸ’¬ Support request
Status

Closed: outdated

Version

1.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024