Issue while killing the process using autosys job

Hi,

I have one autosys job that will retrieve the proccess id's and will kill those processess as follows,

pid=`/usr/ucb/ps -auwwxx | grep MAIN |nawk '{print $2}'`
kill -9 pid

but after executing this particular job, its status is showing as TE(terminated) and the kill process is failing becuase of this.

Can anybody help me on this?

Thanks in advance..!

Do u have any sendevent command in your script? Because only sendevent command can make the status TE using KILLJOB event.

Let me know if I'm wrong.

Thanks for your reply..

I am not using any sendevent command inside this particular script, but still I am getting the staus as TE. :frowning:

try preap <pid> instead of kill -9