Instead of grep, try - 

"who -m | awk '{ print $6 }'"

That should eliminate any duplicates.

-----Original Message-----
From: Baakkonen, Rodney [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 1:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [U2][UD] - Transaction Processing

On Solaris I user a 'who -u | grep user (@LOGNAME)'. I capture the output
and TRIM() it. Then I do a field on '(', to get the IP.

Here is a sample output from Sun:

who -u | grep lmgold
lmgold     pts/601      Nov 23 12:19  0:54  22331       (142.41.170.185)
lmgold     pts/615      Nov 23 12:20  0:50  22385       (142.41.170.185)

And here is some sample Unibasic code:

who.command ='who | grep ': @LOGNAME: ' | grep ': @TTY
022: PCPERFORM who.command CAPTURING who.output
023: ip.part = FIELD(who.output, '(', 2)
024: ip.address = FIELD(ip.part, ')', 1)

-----Original Message-----
From: Chauhan, Savita [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 11:23 AM
To: [EMAIL PROTECTED]
Subject: [U2][UD] - Transaction Processing


Hi,
This question is probably for someone who is a UniData administrator and
system administrator with a little knowledge of Networking.

We have a Requisitions file with on the fields as who authorized person a
particular requisition. This field is in an association because several
people have to authorize a requisition.

I want to know from which machine (the IP address) a particular person
authorized a requisition in Nov 2003. Assuming that we use static IP
addressing.

Can someone please direct me on how to do this? Is there a way I can see the
transactions performed by UniData?

Thanks in advance.
Savita.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to