[SunHELP] Need to kill a process via crontab ?

Bruce Pullig sunhelp at sunhelp.org
Wed Jul 18 15:30:34 CDT 2001


Substitute "process" for which one you want to kill.


#!/bin/sh
PID=`ps -ef | grep process | grep -v grep | awk '{print $2}'`
kill -9 $PID



At 09:57 PM 7/18/2001 +0200, you wrote:
>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

-- 
* * * * * * * * * * * * * * * * * * * * *
   Bruce Pullig
   Senior Systems Administrator
   Schlumberger Oil & Gas Information Solutions
   5444 Westheimer, Suite 800
   Houston, TX 77056
   (713) 350-4217
   bpullig at houston.geoquest.slb.com
* * * * * * * * * * * * * * * * * * * * *




More information about the SunHELP mailing list