What would be the best way to get only the parent PID of a iPlanet webserver instance ?
In this case 17011 is the parent PID. Will the parent PID always show as the last entry of the output ? If not, then I am clueless. If yes, then I can use awk and get the last column of the output which happens to be 17011.
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-61 sun4v sparc sun4v
At times when your fuser command returns more than one PID, what are the processes with those PIDs? And what are the children of those PIDs doing?
From what you have said so far, it seems as though there might be two (or more) processes running on your system at some points in time that are accessing that file. You have not suggested any way to determine which parent you want when multiple parents meet your search criteria.