in reply to how to get which user is on
The PID of the current process if given by special var $$ ... but I'm not sure that's what you want...