Cronjob not exexcuting!

I have a script named email_kill.sh which kills the EMAIlL engine process. See the below content:

#! /usr/bin/ksh -x
PID=`ps -eaf | grep "AREmail" | tail -1 | awk '{print $2}'`
echo "$PID"
kill -9 "$PID"

For this script to execute every hour I made a cronjob:

0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * /opt/remedy/ar/AREmail/email_kill.sh 

But this not executing at the moment and I tried to look in mail and found killed i n logs.
Then I saw it is picking some different PID and killing it.

PLease do anyone have any clues?

 
PID=`ps -eaf | grep "AREmail" | tail -1 | awk '{print $2}'`

While retrieving PID of some process in this way, you may get the pid of grep itself ... So you can do the following, which will give only the process which you are searching for.

 
PID=`ps -eaf | grep "AREmail" | grep -v "grep" | tail -1 | awk '{print $2}'`

Also, you can use range operator instead of placing everything in cron entry for the hour field.

HI thanks for telling
Initially script was :

#!  /usr/bin/ksh -x

PID=`ps -eaf | grep AREmail | grep -v grep | awk '{print $2}'`
kill -9 $PID

after that sleep time was injected into the list.
But all in vain.