<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<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>
<font color="#cc0000">USER=`w | grep $TTY | awk '{print $1}'`</font><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>
</font>
</body>
</html>