【问题标题】:Running scripts on google cloud sdk shell?在谷歌云 sdk shell 上运行脚本?
【发布时间】:2015-04-19 02:08:21
【问题描述】:

我必须在 google cloud sdk shell 中运行多个 gsutil 和 bq 命令。我尝试创建一个 cmd 文件文件并在其中写入所有命令,但它只运行该文件的第一个命令。我可以在 google cloud 上执行此操作吗sdk 外壳?

【问题讨论】:

  • 听起来你打错了。向我们展示您是如何在文件中编写命令的。
  • gsutil ls gsutil -m cp -r C:\Users\adarsh.srivastava\Desktop\REmFIles* gs://bqcommand_week2
  • 以上命令我在批处理文件中编写并尝试运行它,但它只运行 gsutil ls 而不是之后的命令。
  • 对于谷歌云 sdk shell 中的 cmd 文件我做了 echo gsutil ls >> test.cmd 然后 echo bq query "query_string which i want to run" >> test.cmd 然后我运行测试。 cmd 它只运行第一个命令....

标签: shell batch-file google-bigquery gcloud


【解决方案1】:

您可能需要在每个命令前添加CALL,例如:

CALL gcloud app deploy
CALL gcloud app describe

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-06
    • 2021-09-08
    • 2020-10-03
    • 2017-09-23
    • 2018-05-06
    • 2023-01-31
    相关资源
    最近更新 更多