rbenv on crontab

2022-01-25 ruby linux

To use rbenv(ruby) in crontab. You may need to add path to rbenv.

PATH=$HOME/.rbenv/shims:/usr/bin:/bin

Please make sure that $PATH is not available in crontab.

If you want to see the detailed message from each command, install MTA(sendmail) and mail command.

sudo apt install sendmail mailutils