I went through tons of questions and answers in the net. However, I couldnt make my code work. So sorry for raising this question as so many others did.
I have a python script in my directory:
test_codes/test_mail/test_crawler.py
I have my virtualenv in:
.virtualenvs/test_crawler/bin/python
So I have set up a cronjob like this:
* * * * * .virtualenvs/test_crawler/bin/python test_codes/test_mail/test_crawler.py > /test_codes/test_mail/cronlogs.log 2>&1
I have two troubles with that:
- The script should send me an test mail, which I do not receive (manually starting the script works fine(
- The cronlog-file does not appear. Do I need to create this one first? In my opinion this file will be created when executing the first cronjob
Thanks for help in advance