繁体   English   中英

如何在脚本中运行其他命令时并行运行 TOP cmd?

[英]How to run TOP cmd in parallel while running other command in a script?

我有一些同步 bash 命令。 我想要的是在运行命令时运行 TOP cmd 以查看系统在执行命令时的性能。 显然,这 2 cmnds 应该并行运行,并且在同步完成时都完成:

(top -b | grep init >> top-output.txt; // this is top command (maybe need to be changed)
$JFROG rt dl $src --insecure-tls=true --flat=true --retries=6 --threads=14 --sync-deletes=true --quiet // this is sync command it works good

现在如何将它们结合起来并行运行并记录 top 命令。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM