Pexpect idea - but can I handle curses?

Thomas 'PointedEars' Lahn PointedEars at web.de
Fri Mar 13 11:54:41 EDT 2015


Skip Montanaro wrote:

> I have this tweak I'd like to make to the top command (Linux only is
> fine). Most of the time I want to see just one user or all users. Every
> now and again though, I'd like to see all users except another.  Top 
> doesn't support this functionality,

Yes, it (top(1) from procps-ng 3.3.9) does.  Either run

  top -u '!root'

or type “o” (for case-insensitive filter), then e.g. “!USER=root” to show 
processes started by all users except “root”.  RTFM.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.



More information about the Python-list mailing list