killing unix job after the job process completes

Hi,

Thanks in advance.

i need to kill a unix background running job after that job process completes.

i can kill a job by giving the following unix command

kill -9 processid

how to kill the job after the current process run gets completed ?

Appreciate your valuable help.

Thanks - Alo

This is a repost. You are going against the rules.

Look at http://www.unix.com/showthread.php?t=20332

vino