<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tracking user keystrokes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080412#M142502</link>
    <description>Make sure the permissions are 755.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$chmod 755 $HOME/.dtprofile&lt;BR /&gt;&lt;BR /&gt;Revert</description>
    <pubDate>Mon, 29 Sep 2003 07:53:54 GMT</pubDate>
    <dc:creator>T G Manikandan</dc:creator>
    <dc:date>2003-09-29T07:53:54Z</dc:date>
    <item>
      <title>Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080408#M142498</link>
      <description>I need to track users commands or keystrokes, have been surfing the forum  and found that histroy file can be set as the following line in the .profile of each user:&lt;BR /&gt;HISTFILE=${HOME}/.history_files/.hist.`who am i|awk '{print $1}'`.$$.`date +%d%m%y.%H%M`&lt;BR /&gt;&lt;BR /&gt;I found this lines works prfect when doing su - userid, or when connecting via telnet.&lt;BR /&gt;But when using reflectionX, and CDE it doesn't seem to recognise this line.&lt;BR /&gt;&lt;BR /&gt;I tried to do it as the following:&lt;BR /&gt;export export HISTFILE=${HOME}/.history_files/.hist.`who am i|awk '{print $1}'`.$$.`date +%d%m%y.%H%M`&lt;BR /&gt;&lt;BR /&gt;By doing so variable HISTFILE is declared but the `who am i|awk '{print $1}'` is not recognized and just contains nothing.&lt;BR /&gt;&lt;BR /&gt;Any help will be much appreciatable.&lt;BR /&gt;Ihab</description>
      <pubDate>Mon, 29 Sep 2003 07:24:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080408#M142498</guid>
      <dc:creator>Ihab Zaki</dc:creator>
      <dc:date>2003-09-29T07:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080409#M142499</link>
      <description>Edit $HOME/.dtprofile&lt;BR /&gt;&lt;BR /&gt;Uncomment or change it to&lt;BR /&gt;DTSOURCEPROFILE=true&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 29 Sep 2003 07:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080409#M142499</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-09-29T07:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080410#M142500</link>
      <description>T G, thanks for your fast reply,&lt;BR /&gt;but DTSOURCEPROFILE=true is already uncommented</description>
      <pubDate>Mon, 29 Sep 2003 07:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080410#M142500</guid>
      <dc:creator>Ihab Zaki</dc:creator>
      <dc:date>2003-09-29T07:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080411#M142501</link>
      <description>The correct command to use is 'script /dir/file'.  Where /dir/file becomes the collection of all STDIN, STDERR and STDOUT data.  This is keystrokes and their displayed results including any errors.  Again:&lt;BR /&gt;&lt;BR /&gt;script /dir/file</description>
      <pubDate>Mon, 29 Sep 2003 07:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080411#M142501</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-09-29T07:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080412#M142502</link>
      <description>Make sure the permissions are 755.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$chmod 755 $HOME/.dtprofile&lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Mon, 29 Sep 2003 07:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080412#M142502</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-09-29T07:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080413#M142503</link>
      <description>T G,&lt;BR /&gt;&lt;BR /&gt;I don't think there is a problem with .dtprofile&lt;BR /&gt;in the .profile I have 2 senarios first when I set histfile to &lt;BR /&gt;export HISTFILE=${HOME}/.history_files/.hist.`who am i|awk '{print $1}'`.$$.`date +%d%m%y.%H%M`&lt;BR /&gt;&lt;BR /&gt;the HISTFILE is /home/.histroy_files/.hist..pid#.ddmmyy.hhmm&lt;BR /&gt;So it's just totally ignores the 'who am i part'&lt;BR /&gt;&lt;BR /&gt;If I omit 'export'&lt;BR /&gt;the variable "HISTFILE" doesn't have a value, but I am sure the the .profile is executed in both cases.</description>
      <pubDate>Mon, 29 Sep 2003 08:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080413#M142503</guid>
      <dc:creator>Ihab Zaki</dc:creator>
      <dc:date>2003-09-29T08:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080414#M142504</link>
      <description>Ihab,&lt;BR /&gt;  If you are using ksh, try exporting those values in .kshrc inside the home dir.  If not found create the file.&lt;BR /&gt;&lt;BR /&gt;  You are talking about tracking users commands.  If you really want to tract each and every keystroke the user makes, the best option is script.  man script for more details.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Mon, 29 Sep 2003 09:02:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080414#M142504</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-29T09:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080415#M142505</link>
      <description>You may want to &lt;BR /&gt;1) try $LOGNAME instead of&lt;BR /&gt;&lt;BR /&gt;`who am i|awk '{print $1}'` &lt;BR /&gt;&lt;BR /&gt;2) assign points :) in  order to indicate how useful an answer was to you.</description>
      <pubDate>Mon, 29 Sep 2003 09:12:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080415#M142505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-29T09:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080416#M142506</link>
      <description>LOGNAME is changed every time you su to other users.&lt;BR /&gt;'who am i' is always the original user no matter who is the user that you su'ed to.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Sep 2003 09:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080416#M142506</guid>
      <dc:creator>Ihab Zaki</dc:creator>
      <dc:date>2003-09-29T09:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080417#M142507</link>
      <description>su - &lt;USERNAME&gt;&lt;BR /&gt; &lt;BR /&gt;loads the environment of the target username.&lt;BR /&gt; &lt;BR /&gt;su &lt;USERNAME&gt; does not load the environment.&lt;BR /&gt; &lt;BR /&gt;For keystroke collection to work in CDE you must do a login as that user, not root with an su -&lt;BR /&gt; &lt;BR /&gt;An su - in CDE will load the .profile for that user.&lt;BR /&gt; &lt;BR /&gt;The data you have collected from who am i is correct but does not effect the outcome.&lt;BR /&gt; &lt;BR /&gt;SEP&lt;/USERNAME&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Mon, 29 Sep 2003 09:34:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080417#M142507</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-29T09:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080418#M142508</link>
      <description>under $HOME vi .Xdefaults&lt;BR /&gt;&lt;BR /&gt;add resource :&lt;BR /&gt;&lt;BR /&gt;Dtterm*loginShell:True&lt;BR /&gt;&lt;BR /&gt;log out and back in and test.&lt;BR /&gt;&lt;BR /&gt;by default the .profile is not executed under a dtterm you could also try firing up a dtterm with the -ls option ?</description>
      <pubDate>Mon, 29 Sep 2003 09:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080418#M142508</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2003-09-29T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user keystrokes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080419#M142509</link>
      <description>Alex,&lt;BR /&gt;&lt;BR /&gt;You almost found it, I added resource&lt;BR /&gt;*loginShell:  True&lt;BR /&gt;Which this way can apply to all term types&lt;BR /&gt;And that sorted out the problem. &lt;BR /&gt;Thanks.&lt;BR /&gt;I would like to thank every person contribued to the problem.&lt;BR /&gt;&lt;BR /&gt;THanks Again,&lt;BR /&gt;Ihab</description>
      <pubDate>Mon, 29 Sep 2003 11:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracking-user-keystrokes/m-p/3080419#M142509</guid>
      <dc:creator>Ihab Zaki</dc:creator>
      <dc:date>2003-09-29T11:26:53Z</dc:date>
    </item>
  </channel>
</rss>

