[SunHELP] Kill command
Selva Kumar
toselva at hotmail.com
Tue Jul 9 12:06:20 CDT 2002
Use:
pkill <Signal> <process name>
This would help.
Regards,
Selvam
>From: Subhasis Gupta >To: "Zakaria A. Mattar" , SunHELP at sunhelp.org
>Subject: Re: [SunHELP] Kill command >Date: Mon, 8 Jul 2002 21:30:49
-0700 (PDT) > >Try writing a script as follows (say killuser): >#!/bin/sh
>user=$1 >kill -9 `ps -ef | awk '$1=="$user" {print $2}'` >2>/dev/null >
>Then run killuser username >This would kill all the processes owned by
the user >. >Let me know, if this works, >Regards, >Subhasis > >---
"Zakaria A. Mattar" wrote: > > Dear all, > > > > How can I kill any
session using the preocess name > > not the ID > > > > Zakaria A. Mattar
> > Advanced Telecom Co. > > Operation Engineer > > Tel: +966 1
4601877/114 > > Fax: +966 1 4601988 > > Email: zmattar at atc.com.sa > >
_______________________________________________ > > SunHELP maillist -
SunHELP at sunhelp.org > > http://www.sunhelp.org/mailman/listinfo/sunhelp
>Sign up for SBC Yahoo! Dial - First Month Free >http://sbc.yahoo.com
>_______________________________________________ >SunHELP maillist -
SunHELP at sunhelp.org >http://www.sunhelp.org/mailman/listinfo/sunhelp
------------------------------------------------------------------------
Chat with friends online, try MSN Messenger: Click Here
More information about the SunHELP
mailing list