原文:top:failed tty get 错误

运行命令,ps ef grep test grep v test awk print xargs top H p 想看test的实时状态,结果报了错,查了一下,用脚本在非交互模式下调用top就会出这个错,加上一个 b,切换到 Batch mode 模式即可解决。 ps ef grep test grep v test awk print xargs top b H p ...

2016-05-13 21:29 0 1834 推荐指数:

查看详情

top后台执行显示:top: failed tty get 错误

通过其他程序或脚本在非交互式模式下调用top命令,经常会出现: top: failed tty get 错误 解决办法:加个-b 选项皆可 -b : Batch mode operation Starts top in <A1><AF>Batch ...

Fri May 11 00:33:00 CST 2018 0 2461
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM