<!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. 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>
<font color="#cc0000">USER=`w | grep $TTY | awk '{print $1}'`</font><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>
</font>
</body>
</html>