gpt4 book ai didi

linux - 当我在 Linux 机器中运行时,命令显示其执行日志,但当我通过 ssh 触发相同的命令时,它不显示日志

转载 作者:太空宇宙 更新时间:2023-11-04 05:11:47 24 4
gpt4 key购买 nike

当我在 putty 中运行以下命令时,其显示的执行日志如下

sourceanalyzer -b sample mvn com.fortify.sca.plugins.maven:sca-maven-plugin:18.10:translate

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.test:sample:jar:0.0.5-SNAPSHOT`
----------
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 159, column 12
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 155, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]

当我在 TFS 中的 ssh 任务上运行相同的命令时,上面的执行日志不会显示并获取如下输出。

2019-01-31T17:48:41.2940860Z sourceanalyzer -b sample mvn com.fortify.sca.plugins.maven:sca-maven-plugin:18.10:translate
2019-01-31T17:48:42.2004980Z ##[section]Finishing: Fortify scanning

我希望获得与 TFS 构建第一步相同的输出。

最佳答案

一个简单的修复方法是将命令的输出通过管道传输到文本文件。

[Fortify_command] > outputfile.txt

关于linux - 当我在 Linux 机器中运行时,命令显示其执行日志,但当我通过 ssh 触发相同的命令时,它不显示日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54467058/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com