Как остановить вывод stderr из команды gcloud в скрипте cron без прекращения вывода всех ошибок?

Информацию об использовании физического диска можно найти здесь:

https://www.vmware.com/support/ws5/doc/ws_disk_raw.html

Внизу примечания:

Note: You should not use a physical disk to share files between host and guest operating systems. It is not safe to make the same partition visible to both host and guest. You can cause data corruption if you do this. To share files between host and guest operating systems, use shared folders. For details, see Using Shared Folders.

Информацию об общих папках можно найти здесь:

https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-D6D9A5FD-7F5F-4C95-AFAB-EDE9335F5562.html

0
13.08.2020, 14:57
1 ответ

Решение состоит в том, чтобы добавить этот глобальный флаг, который применяется ко всем командам gcloud:

--no-user-output-enabled

    Print user intended output to the console. 
    Overrides the default core/user_output_enabled property value for this command invocation. 
    Use --no-user-output-enabled to disable.

https://cloud.google.com/sdk/gcloud/reference#--user-output-enabled

Фактические ошибки по-прежнему направляются в stderr.

0
18.03.2021, 23:13

Теги

Похожие вопросы