LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-25-2005, 09:12 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Question how to log user commands in xterm without using "script" command

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?

Old 08-25-2005, 01:27 PM   #2
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 33
cat $HOME/.bash_history
Old 08-28-2005, 02:08 AM   #3
LQ Newbie
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 11:35 AM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 06:37 AM
Starting an xterm window that is "always on top" on command line azilkie Fedora 1 10-07-2005 10:17 PM
"Command not found" for existing commands kpachopoulos Linux - Newbie 8 10-01-2004 05:34 PM

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration