Identify user in update mode

Fairlight fairlite at fairlite.com
Mon Aug 1 17:45:21 PDT 2011


Yo, homey, in case you don' be listenin', Kenneth Brody done said:
> On 8/1/2011 5:22 PM, Dennis Malen wrote:
> > I believe this has been addressed in the past, but is there any way that you
> > can identify who is sitting in a filepro file in a record in update? It
> > would also be nice to identify the file name.
> 
> My showlock program will show you the locks on any given file.  I believe it 
> was Bob Stockler who wrote the "lock.info" shell script wrapper to turn the 
> output into a more "user friendly" format including, I believe, the username 
> and tty of the lock's owner.

I have a program written in perl that does this, but to trace it back to
the username, you have to walk the process tree.  It's been tested on SCO
OpenServer 5.0.6, and multiple versions of Linux.  It depends on the SysV
model of the process tree given by `ps` to walk the PPIDs back to the
ultimate parent, short of init--which is necesarry in some operating
systems, as Linux, for example, shows all filePro processes running -as-
'filepro', due to SUID.  In SCO, this wasn't an issue.

mark->
-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list