Operating System - HP-UX
1829447 Members
1434 Online
109992 Solutions
New Discussion

keyboard/keystoke logging software

 
Marc Ahrendt
Super Advisor

keyboard/keystoke logging software

i know there are tons of keystroke loggers for Windows, but what about for HP-UX?

i am hoping there is a method to capture every keystroke on the console keyboard of our HP workstation running 10.20 using a shell script or ???

i am familiar with "script" but not sure that will do the job as i want to capture keystrokes while users are running a particular application over our Intranet ...not stuff at the command line.
hola
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: keyboard/keystoke logging software

The script utility will do the job because it captures input and output not just at the shell but of child processes as well. I would set PS1 so that it is an easily recognizable string. You can then search for the command launch and stop when you see ${PS1} again.
If it ain't broke, I can fix that.
Marc Ahrendt
Super Advisor

Re: keyboard/keystoke logging software

clay, i tried using "script" in $HOME/.login as follows
...
script log-keystrokes
start-X-and-intranet-app
...

what i find is, when doing a rlogin or login from the console (no CDE ...XDM started when logged in), that the "script" runs fine but brings provides a prompt. then when i run commmands is logged to the file-keystrokes until i run "exit" which the stops the "script" and then starts "start-X-and-intranet-app" ...so i have lost the keyboard logging ability i wanted, which is while this app is running.

not sure if i am running "script" propely by putting it in the .login
hola
Marc Ahrendt
Super Advisor

Re: keyboard/keystoke logging software

i knew my english skills have dwindled ...but soory for all the typos in my last post

basically "script" seems to start OK, but then stops (triggered by HAVING to run "exit") before allow .login to continue, and thus run the application i am interested in logging keystokes against
hola
Marc Ahrendt
Super Advisor

Re: keyboard/keystoke logging software

after further testing it seems that "script" does not work as advertised by Clay. it does not capture any keystrokes that are pressed after lauching the application from the command line. in fact the last entry in the log file created by "script" is the keystrokes used to start the application.
hola