[SunHELP] Need to kill a process via crontab ?
Elly Wijaya
sunhelp at sunhelp.org
Wed Jul 18 15:28:18 CDT 2001
How about pkill -9 <process name>? You need to be on Sol 7 or higher to use
pkill.
Otherwise you can use the following command:
ps -ef | grep <process name> | grep -v "grep <process name>" | awk
'{print $2}' } | xargs kill -9
Elly
----- Original Message -----
From: "Michael Karl" <rumi at scs.de>
To: <sunhelp at sunhelp.org>
Sent: Wednesday, July 18, 2001 12:57 PM
Subject: [SunHELP] Need to kill a process via crontab ?
> Hey all,
>
> has anybody a script, which find a process by name and
> kill (-9) it by process-id ?
>
> Thank you
>
> Michael
>
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list