Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log output Stdout or Stderr #19

Closed
wants to merge 2 commits into from
Closed

log output Stdout or Stderr #19

wants to merge 2 commits into from

Conversation

liuxingjun
Copy link

可以使用重定向的方式, 只显示错误信息,屏蔽上传过程中的输出

$ ls
test.giz
$ coscli sync ./test.tar cos://bucket1/example
FATA[2022-08-10 11:47:55] stat ./test.tar: no such file or directory 
$ coscli sync ./test.tar cos://bucket1/example > log
FATA[2022-08-10 11:47:55] stat ./test.tar: no such file or directory 
$ coscli sync ./test.giz cos://bucket1/example > log
$ cat log 
INFO[2022-08-10 12:32:35] Upload /root/./test.giz => cos://bucket1/example/cmake-3.15.5.tar.gz 
INFO[2022-08-10 12:32:35] Upload /root/./test.giz => cos://bucket1/example/cmake-3.15.5.tar.gz 
100% [##############################] 9271925/9271925 Bytes

fix issues/13

@liuxingjun liuxingjun closed this by deleting the head repository Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

建议:添加静默执行命令的参数
1 participant