How to get CRON to call in the correct PATHs

前端 未结 15 1131
时光取名叫无心
时光取名叫无心 2020-11-22 06:07

I\'m trying to get cron to call in the correct PATHs. When I run a Python script from shell the script runs fine as it uses the PATHs set in bashrc but when I use cron all t

15条回答
  •  执念已碎
    2020-11-22 07:04

    Setting PATH right before the command line in my crontab worked for me:

    * * * * * PATH=$PATH:/usr/local/bin:/path/to/some/thing
    

提交回复
热议问题