[SunHELP] kill
DAUBIGNE Sebastien - BOR
sunhelp at sunhelp.org
Thu Jun 21 05:10:31 CDT 2001
# man ps
[...]
-u uidlist List only process data whose effective user
ID number or login name is given in uidlist.
In the listing, the numerical user ID will be
printed unless you give the -f option, which
prints the login name.
[...]
So you can try this :
# ps -u myuser | awk '{print $1}' | xargs kill -9
---
Sebastien DAUBIGNE=20
sebastien.daubigne at sema.fr - 05.57.26.56.36
Sema Global Services - AFM/DW/Pessac
-----Message d'origine-----
De: Wally A. Alubankudi [SMTP:walubank at hotmail.com]
Date: mercredi 20 juin 2001 16:32
=C0: sunhelp at sunhelp.org
Objet: [SunHELP] kill
Hi All,
I am trying to kill all processes that belong to a user but my
command=20
fail, checkout my command and see what is wrong.
# ps -e | grep foo | grep -v grep | awk '{print $1}' xargs kill -9
Wally
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list