小编sam*_*mit的帖子

如何使用Google Cloud Shell安排shell脚本?

我有一个存储在GCS中的.sh文件.我正在尝试通过谷歌云外壳安排.sh文件.

我可以使用gsutil cat gs://miptestauto/baby.sh | sh命令运行相同的文件,但无法安排它.

以下是我安排文件的代码:

16 17 * * * gsutil cat gs://miptestauto/baby.sh | sh
Run Code Online (Sandbox Code Playgroud)

它将消息显示为"auto saving..done",但在我使用时未显示预定作业 crontab -l

# contents of .sh file 
bin/bash
bq load --source_format=CSV babynames.baby_destination13 gs://testauto/yob2010.txt name:string,gender:string,count:integer
Run Code Online (Sandbox Code Playgroud)

请任何人都可以告诉我如何安排它使用谷歌云壳.我没有使用计算引擎/ app引擎.只是想使用云外壳安排它.

先感谢您 :)

shell cron google-bigquery google-cloud-platform google-cloud-shell

0
推荐指数
1
解决办法
5206
查看次数