top:failed tty get 错误
2016-05-13 21:29
459 查看
运行命令,ps -ef | grep test | grep -v test | awk '{ print $2 }' | xargs top -H -p
想看test的实时状态,结果报了错,查了一下,用脚本在非交互模式下调用top就会出这个错,加上一个 -b,切换到“Batch mode”模式即可解决。
ps -ef | grep test | grep -v test | awk '{ print $2 }' | xargs top -b -H -p
想看test的实时状态,结果报了错,查了一下,用脚本在非交互模式下调用top就会出这个错,加上一个 -b,切换到“Batch mode”模式即可解决。
ps -ef | grep test | grep -v test | awk '{ print $2 }' | xargs top -b -H -p
相关文章推荐
- 怪物AI之发现玩家(视觉范围发现系列)
- 217ContainsDuplicate.c
- python 单元测试unnitest-摘录自http://www.cnblogs.com/hackerain/p/3682019.html#undefined
- hdu1848Fibonacci again and again
- 原创血泪教训【error】LINK1123: failure during conversion to COFF: file invalid or corrupt
- hdu1401 Solitaire ----双向BFS
- WARNING ITMS-90076: "Potential Loss of Keychain Access."
- poj1363 Rails(栈模拟)
- AIDL
- uva10276 hanoi tower troubles again
- 217. Contains Duplicate
- poj1325 air raid
- win下cygwin openwrt编译测试 (应该行得通,但是我找不出来working g++ failed原因。)
- poj1273 Drainage Ditches
- 浙大 PAT Advanced level 1014. Waiting in Line (30)
- 《最终幻想XV》中角色AI的意识决策系统解析
- Could not obtain transaction-synchronized Session for current thread
- POJ 1363 Rails
- 人工智能
- myBaits 插入多条数据 foreach 查询数据