<!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.&nbsp; This makes 
  it difficult to determine who really has a record locked.&nbsp; I have added 
  this line to the script and I find it works well.<BR><BR>&nbsp;&nbsp; # Get 
  the user names, ttys and commands being executed:<BR>&nbsp;&nbsp; for i in 
  $I<BR>&nbsp;&nbsp; do # Get user name, tty &amp; command for the process 
  holding the lock:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval $( $PS -ef 
  |<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $AWK -v PID="${PID[i]}" 
  '<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $2 == PID { print 
  "USER=" $1 ; print "TTY=" 
  $6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  $1 = $2 = $3 = $4 = $5 = $6 = $7 = "" ; sub(/^[ 
  \t]+/,"")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  print "CMD=\"" $0 "\"" }' )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Print the 
  results:<BR><BR>USER=`w | grep $TTY | awk '{print 
  $1}'`<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ECHO "<BR>&nbsp;&nbsp; filePro 
  File: $PFNAME<BR>&nbsp; Record Number: 
  ${REC_NUM[i]}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  User: 
  $USER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  TTY: 
  $TTY<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  PID: ${PID[i]}<BR><BR>Richard D. Williams<BR></BLOCKQUOTE></FONT></BODY></HTML>