I have a problem where I want to run (daily at 2pm) a Python code in my VM but the cronjob didn't work as expected.
Here is the code that i tried in crontab -e:
#1
0 14 * * * /home/try/myf.py
#2
0 14 * * * /home/try/miniconda3/bin/python /home/try/myf.py
#3
0 14 * * * python /home/try/myf.py
#4
0 14 * * * /home/try/miniconda3/bin/python myf.py
All of this code didn't work for me. Can anyone explain or advice me on how to do the code? If possible, how can I check the log of this cronjob?