[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: [GENERAL] PostgreSQL Cache
From:       Sam Mason <sam () samason ! me ! uk>
Date:       2008-09-30 12:04:29
Message-ID: 20080930120429.GN7271 () frubble ! xen ! chris-lamb ! co ! uk
[Download RAW message or body]

On Mon, Sep 29, 2008 at 05:53:02PM -0400, Greg Smith wrote:
> On Mon, 29 Sep 2008, Sam Mason wrote:
> > echo 3 | sudo tee /proc/sys/vm/drop_caches
> >As an aside, it would be nicer if there was a more appropriate program 
> >than tee but I've yet to find one.
> 
> What are you trying to accomplish here that tee isn't quite right for?

tee works for how it's being used for here; it's just wired into my
brain for tasks other than writing to files with different privileges.
I ended up with a similar invocation when I was solving a similar
problem a couple of months ago (not sure how I'd not hit it before then)
and kept searching for something more natural.

I've just done a search and using tee here appears to be somewhat
standard, so I guess that answers my question.  Sorry for the noise!


  Sam

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic