问题
I need to run my python file once in every day on Google Compute Engine that Ubuntu 18.04 installed in it.
回答1:
Use Crontab to run the script (here's the crontab documentation) and make your .py file executable with "chmod +x script.py
"
Similar topics were discussed here and here.
来源:https://stackoverflow.com/questions/61584857/run-python-file-daily-on-google-compute-engine-with-linux-ubuntu