I'm trying to debug why my cron job is not working
Here's what I have so far:
* * * * * /bin/echo "cron works" >> /tmp/test_cron_hello <-- WORKS
* * * * * cd ~/bot-v2 & date >> /tmp/test_cron_hello <-- WORKS
* * * * * cd ~/bot-v2 & date >> logs/cron.txt <-- DOES NOT WORK
I know that ~/bot-v2/logs/cron.txt is a valid file and folder and I am running crontab -e as root.