Attach to a process and modify environment on exec