Cron can’t seem to run python script

I have a python script that does a bunch of stuff. I need cron to run that script, but it doesn’t seem to work. Here’s my cron job:

* * * * * /home/deploy/bin/monitor

Here’s that script that handles monitoring:

#!/usr/bin/env bash
# runs the monitor script
echo 'Running the monitor script...'
source ~/.bashrc
cd ~/git/ScamProtectorsMonitor
./ >> ~/monitor.log

The only thing I could think of is that I have python setup through anaconda, but sourcing ~/.bashrc should pick that up. Any ideas?

Leave a Reply

Your email address will not be published. Required fields are marked *