Start VM > Execute Script > Stop VM

484 views
Skip to first unread message

Hugo Nicholls

unread,
Jun 21, 2022, 8:13:59 PM6/21/22
to gce-discussion

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

Janet Stern

unread,
Jun 24, 2022, 5:08:49 PM6/24/22
to gce-discussion
Reply all
Reply to author
Forward
0 new messages