Add guide to setup cron task with new virtualenv
Issue #54
resolved
Hi,
Could you add some tips to the readme to help setup a Cron task with the new python3 virtual environment and autograbber.
Comments (4)
-
Account Deleted reporter -
repo owner -
assigned issue to
The reason your script doesn't work is that you are activating the virtualenv and then using sudo. Running sudo resets your environment variables, so this is the same as not activating the virtualenv at all.
I've committed the script which I use to the git repo. Hopefully that'll help.
-
assigned issue to
-
repo owner - changed status to resolved
-
Account Deleted reporter - removed responsible
The problem I am seeing is related to my unique setup because I use webdl via a VPN connection.
This appears to work;
mabo@debian:~$ cat auto-grab-env.sh #/bin/sh source /home/mabo/webdl/.virtualenv/bin/activate /home/mabo/webdl/autograbber.py /home/mabo/Videos /home/mabo/webdl/patterns.txt
- Log in to comment
Example of my bash script that doesn't work.
Error that I get when running the script.