Answer the question
In order to leave comments, you need to log in
Command not found, how so?
With my hands I enter the
backup perform --trigger mybackup command,
the program starts up and does everything as it should. I'm running as a user who is in the sudo
which backup group
/home/deployer/.rvm/gems/ruby-2.1.5/bin/backup
/bin/sh: 1: backup: not found
/bin/sh: 1: backup: not found
/bin/sh: 1: backup: not found
/bin/bash: backup: command not found
Answer the question
In order to leave comments, you need to log in
specify the full path.
or add /home/deployer/.rvm/gems/ruby-2.1.5/bin in cron to PATH
Obviously, in the crontab you need to write the full path to the binary. to the out file too
You need to run crontab as the deployer user.
crontab [-u user] file
List
crontab -l
for more details man crontab
Your .bashrc PATH most likely has a non-standard one.
In crontab - pure sh. Change PATH in crontab file too.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question