process executable file full path

hi guys

i give "ps -ef | grep some_executable_file" on the command line.
this "some_executable_file" resides on many paths which r included in the PATH environment variable, so the output depicts only "some_executable_file" in the COMMAND column. how can i get the full path?

thanx

Get the PID and look in /proc/<PID> there will be a symbolic link from /proc/<PID>/exe to the full path to the executable

....If your version of Unix supports the /proc filesystem.

You can also use lsof or fuser to find who has what file open, again depnding on your Unix.

The HP/UX version that i use, supports neither the `proc` file system nor the `lsof` command. And i cannot try the `fuser` since only a superuser can. I thought of writing a program using the pstat family system calls ( pstat_getproc() ... ). anyone used that before? thanx for helping guys...