how to send email once process finishes



Hi, I'd like to send myself an email once a particular process ends.
In other words, I know the process ID, and it usually runs for several
hours, so I'd like to know when it finishes. Is it possible to write a
script to do that?

Thanks
bahoo

.