Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Start VM > Execute Python script > Stop VM

H123
New Member

I currently have a VM Instance (Linux Debian) within google cloud that has a functioning environment for my python project, and everything works when inputted: "python3 run.py" via SSH command line.

How can I automate the running of the instance > then the execution of that python file > then the stopping of the instance? I couldn't find very much when looking around

1 2 1,938