[gull] Truc et astuces: [OpenVZ] A qui appartient un process

Stéphane Graber stgraber at ubuntu.com
Fri Sep 24 23:22:32 CEST 2010


On Fri, 2010-09-24 at 22:41 +0200, JM Nunes wrote:
> ...
> > root at hertz:~# ps aux | grep apache | tail -1
> ...
> ce n'est pas pour être rabat-joie, mais pgrep permet d'être encore plus 
> concis.

Hehe, en effet, je n'ai pas vraiment le reflex d'utiliser pgrep en
dehors de dans mes scripts.

"pgrep -n apache2" aurait donné un résultat similaire et "vzpid $(pgrep
-n apache2)" aurait montré dans quelle VZ il roule.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://forum.linux-gull.ch/pipermail/gull/attachments/20100924/6af844da/attachment.pgp>


More information about the gull mailing list