LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to log user commands in xterm without using "script" command (https://www.linuxquestions.org/questions/linux-general-1/how-to-log-user-commands-in-xterm-without-using-script-command-356838/)

lilachb 08-25-2005 08:12 AM

how to log user commands in xterm without using "script" command
 
Hi.
I need to log the commands a user is typing in the xterm.
I can't use the script command since it collects also non printable data and so I get a lot of junk in the log file.
the internal option of logging from the xterm (-lf) is disabled so I can't use that as well.

Does anyone know of a different tool to log commands or how to clean the output of script easily?

Thanks,
Lilach

saman007uk 08-25-2005 12:27 PM

Code:

cat $HOME/.bash_history

lilachb 08-28-2005 01:08 AM

Thanks for the suggestion but...
If they used bash I had no problem with the "script" command as well. The problem is with tcsh.

In any case I am looking for something that can be started and stopped. The history file can contain too much data or not enough.

Any other suggestions?


All times are GMT -5. The time now is 05:40 AM.