Identify user in update mode

Brian K. White brian at aljex.com
Tue Aug 2 09:03:50 PDT 2011


On 8/1/2011 8:45 PM, Fairlight wrote:
> 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->

sigh and of course if we collectively bought and opened the code we 
could just export this info directly and with no need to guess or deduce 
or inefficiently backtrack using external tools, to shm, and/or provide 
a nice libfilepro.so that supplies an easy function...

-- 
bkw





More information about the Filepro-list mailing list