Originally posted by: grukrz1
How to get terminal a command was executed in?
Having EXTENDED_HISTORY=ON, I can't pinpoint it.
eg.
1845 2008/01/23 09:48:23 :: mailq
1846 2008/01/23 09:49:00 :: mailx
1847 2008/01/23 09:49:02 :: mail
1848 2008/01/23 09:50:13 :: vi /etc/hosts
The problem is when more than one users logged on the same account to the system. Then their activities are mixed in history.
Maybe someone of you have another idea how to record activities of users in a system - collecting date, time, terminal and command.
I tried also with 'acctcom /var/adm/pacct' but it doesn't show 'date', only time eg.:
#cp root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
#acctwtmp root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
#fwtmp root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
#awk root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
#sed root pts/118 14:03:13 14:03:13 0.00 0.00 0.00
Thank you in advance,!
#AIX-Forum