简体   繁体   English

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

[英]command showing its execution log when I run in Linux machine but when I trigger same command over ssh its not displaying log

When I run following command in putty in its showing execution log as below当我在 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]

When I run same command over ssh task in TFS, that above execution log is not displaying & getting output as below.当我在 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

I am looking to get the output same as in first step in TFS build.我希望获得与 TFS 构建的第一步相同的输出。

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

[Fortify_command] > outputfile.txt

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pexpect:通过ssh隧道从命令运行中检索日志 - pexpect: Retrieve log from command run over ssh tunnel 运行命令 sh -x file.sh 时如何捕获执行步骤 | Linux | - How do i capture execution steps when command sh -x file.sh is run | Linux | 是否存在文件在PHP中超时执行的日志? - Is there a log of when a file times out its execution in PHP? 使用PuTTY / Plink运行命令时能否保存执行日志 - Can we save the execution log when we run a command using PuTTY/Plink 为什么当我运行一个不断分配内存的进程时,Linux Free命令没有显示较少的可用内存 - Why Linux Free command is not showing less free memory when I run a process which keeps on allocating memory 当我通过 Git Bash 中的 ssh 在远程 Linux 机器上运行命令时,如何将文件的内容直接复制到我的 Windows 剪贴板中? - How can I copy the contents of a file directly into my Windows clipboard when I'm running the command on a remote Linux machine via ssh in Git Bash? sudo:当我进入服务器时找不到命令 - sudo: command not found when I ssh into server 在远程机器上运行命令并将其 output 存储在远程机器上的变量中 - Run a command on remote machine and store its output in variable on remote machine 使用SSH在远程Linux机器上运行带有Agruments的cleartool命令 - using SSH to run a cleartool command with agruments on remote a linux machine Linux在PUTTY / SSH中加载时停止命令 - Linux stop a command while its loading in PUTTY/SSH
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM