Starting phantomJS from a script in a cronjob

后端 未结 3 1060
灰色年华
灰色年华 2020-12-17 21:30

I\'m running a python script through a cronjob. I have a virtual environment and in the cronjob I\'m running it through this virtual environment. When I run the script norma

3条回答
  •  感情败类
    2020-12-17 22:27

    As phantom is probably installed in /usr/local/bin, you should add that dir to PATH in your crontab. The following should do the trick:

    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    

提交回复
热议问题