LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
Question 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
 
Old 08-25-2005, 12:27 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
Code:
cat $HOME/.bash_history
 
Old 08-28-2005, 01:08 AM   #3
lilachb
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?
 
  


Reply


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 10:35 AM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM
Starting an xterm window that is "always on top" on command line azilkie Fedora 1 10-07-2005 09:17 PM
"Command not found" for existing commands kpachopoulos Linux - Newbie 8 10-01-2004 04:34 PM


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

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