• Uncategorized

About python : Automating-a-Python-script-with-Crontab

Question Detail

I am trying to automate a Python script on a Google Cloud VM using Crontab.

When I run python Daily_visits.py my code runs as expected and generates a table in BigQuery.

My Crontab job is as follows: */2 * * * * /usr/bin/python Daily_visits.py but generates no output.

I’ve run which python and I get /usr/bin/python back, and I have run chmod +x Daily_visits.sh on my file, what else am I missing?

Question Answer

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.