I USE UNIDATA ON AIX, THE FOLLOWING TWO LINES DO THE JOB.

PERFORM '!who am i' CAPTURING LOCATION
ADDRESS=OCONV(OCONV(LOCATION, 'G1(1'),'G0)1')

HTH


>>> [EMAIL PROTECTED] 11/23/04 10:18AM >>>
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