[英]Google Compute Engine canceling execution (Linux - execute on background)
[英]How to execute program on Google Compute Engine locally
作為標題,我已經將一些程序上載到運行Linux的計算引擎實例中,並計划在本地執行它們。
但是,我在Google Compute Engine API中找不到如何從本地執行該程序的任何文檔。
例如,我正在尋找類似的功能
instance.run_Command("$ sudo python program.py args")
任何想法? 無需使用google-cloud-api,歡迎使用任何方法。
您可以使用Python中的Fabric來做到這一點。 幕后Fabric僅使用SSH。
您可以使用gcloud compute ssh --zone ZONE INSTANCE --command 'python program.py args'
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.