So i have a file success.sh
python3 /home/ubuntu/foo.py
and this runs in Cron with:
* * * * * /home/ubuntu/success.sh >> /tmp/cron_output
where foo.py is simply
print("DSVSDVDSVSDFDS")
however as soon as I try to run what i actually want to run and change success.sh to the following:
cd "/home/ubuntu/Amazon to Ebay v1.7/Catalogue 2/" && python3 "/home/ubuntu/Amazon to Ebay v1.7/Catalogue 2/ebay-price-arbitrage-bot.py"
No output is being recorded in the file...
I'm wondering if it is acutally running or not. Why isn't anything being outputted?? success.sh runs fine as a standalone...
EDIT:
I've changed my crontab to the following:
* * * * * /home/ubuntu/success.sh > /tmp/cron_output 2>&1
So it outputs errors. Now its showing that a module is not found in my py script.
Traceback (most recent call last):
File "/home/ubuntu/Amazon to Ebay v1.7/Catalogue 2/ebay-price- arbitrage-bot.py", line 23, in <module>
from paypal import PayPalInterface
ModuleNotFoundError: No module named 'paypal'
but it works fine as a standalone, so i dont know whats going on.