tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Question from Kerninghan & Pyke's "THE UNIX PROGRAMMING ENVIRONMENT"

Best approach for non-root users to backup file systems? ▻

Process ID question ?

In article <7rnl5b$3ag@dfw-ixnews12.ix.netcom.com>,
David Combs <dkcombs@netcom.com> wrote:
>The O'Reilly book System Administration  has this trick (pg 76):

Yes, I only recently came across this one myself.  But it's another
Useless Use Of Grep...

>ps -ef | grep "[d]oom" | awk '{print $2}' | xargs renice +10

    ps -ef |awk '/[d]oom/ { print $2 }' |xargs renice +10

Tim.
--
Tim Goodwin   | "[ `static' ] is so overloaded in the C/C++ world that
Leicester, UK | I try to avoid it whenever I can't." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.questions,comp.unix.shell,comp.unix.solaris,comp.unix.misc
Subject: Re: Process ID question ?
Date: 16 Sep 1999 13:10:16 +0100
Organization: University of Leicester, UK
Distribution: inet
Message-ID: <7rqmnu$bp6$1@ltpcg.star.le.ac.uk>
References: <37D886D5.82B335AC@yahoo.com> <FHuFHA.1oz@camtech.net.au>
  <7rj713$2ke$1@ltpcg.star.le.ac.uk>
  <7rnl5b$3ag@dfw-ixnews12.ix.netcom.com>

△ comp.unix.shell △

◅ Question from Kerninghan & Pyke's "THE UNIX PROGRAMMING ENVIRONMENT"

Best approach for non-root users to backup file systems? ▻