How to get PID of last command executed inside EOF block

welcome to shbcf.ru