[procps] Re: top buglets + misc

  • From: Jim Warner <james.warner@xxxxxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Fri, 17 Feb 2012 00:13:14 -0600

On Feb 16, 2012, at 4:04 PM, Sami Kerola wrote:

> Maybe toprc directory is not totally bad idea.  It could for example
> implement some sort of commonly available environment variable more to
> less specific evaluation.  For example
> 
> $HOME/.toprc.d/$HOSTNAME
> $HOME/.toprc.d/default
> /etc/toprc
> 
> That would make NFS home use case work fine.  Is that any good in
> other situations, I am not sure.
> 
> Of course top could implement domain-specific configuration language
> to overcome all issues, but this option feels overkill.

Sami,

No symlinks.
No new variables.
No additional code bloat.

   #!/bin/sh
   export HOME=/where/rcfile/written && /with/this/top

Jim


Other related posts: