<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=288112100-05102006><FONT
face="Courier New"><STRONG>Richard,</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=288112100-05102006><STRONG><FONT face="Courier New">Thanks,
that is pretty useful... I din't realize that lock.info didn't give the user.
</FONT></STRONG></SPAN></DIV>
<DIV><SPAN class=288112100-05102006><STRONG><FONT
face="Courier New">John</FONT></STRONG></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #ffff00 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
filepro-list-bounces+john=valar.com@lists.celestial.com
[mailto:filepro-list-bounces+john=valar.com@lists.celestial.com]<B>On Behalf
Of </B>Richard D. Williams<BR><B>Sent:</B> Tuesday, October 03, 2006 4:17
PM<BR><B>To:</B> filepro-list@lists.celestial.com<BR><B>Subject:</B> fix for
lock.info<BR><BR></FONT></DIV><FONT face="Courier New, Courier, monospace">I
don't know if anyone else has fixed this already, but I have noticed when I
run the lock.info script it always lists filepro as the user. This makes
it difficult to determine who really has a record locked. I have added
this line to the script and I find it works well.<BR><BR> # Get
the user names, ttys and commands being executed:<BR> for i in
$I<BR> do # Get user name, tty & command for the process
holding the lock:<BR> eval $( $PS -ef
|<BR> $AWK -v PID="${PID[i]}"
'<BR> $2 == PID { print
"USER=" $1 ; print "TTY="
$6<BR>
$1 = $2 = $3 = $4 = $5 = $6 = $7 = "" ; sub(/^[
\t]+/,"")<BR>
print "CMD=\"" $0 "\"" }' )<BR> # Print the
results:<BR><BR>USER=`w | grep $TTY | awk '{print
$1}'`<BR><BR> $ECHO "<BR> filePro
File: $PFNAME<BR> Record Number:
${REC_NUM[i]}<BR>
User:
$USER<BR>
TTY:
$TTY<BR>
PID: ${PID[i]}<BR><BR>Richard D. Williams<BR></BLOCKQUOTE></FONT></BODY></HTML>