The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
tail -f wannalearn Shell Programming and Scripting 4 04-10-2007 06:22 PM
Tail?? qfwfq Shell Programming and Scripting 7 06-19-2006 02:15 AM
how to sed with tail redlotus72 UNIX for Dummies Questions & Answers 1 08-30-2005 06:27 AM
Output from tail to a user ifan UNIX for Dummies Questions & Answers 3 06-30-2003 12:50 PM
using tail -f cdunavent Shell Programming and Scripting 6 10-23-2002 06:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-16-2002
bbutler3295 bbutler3295 is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 39
Tail User

Ok i looked through quite a few posts but could not find what i was looking for so forgive me if this post can be found elese where...

I would like to use a command like tail view what users are doing in the system i have quite a few dba's that come come to my office and do work on the system and i would like to see exactly what they are doing, and if at all posible dump everything to a log so that if they are doing somthing that they should not be doing i will be able to find out, somthing that would go into so much detail that you would be able to see what command that they execute....
Would be so much help i might be able to point the finger at the correct person...
Thanks in advance
  #2 (permalink)  
Old 03-18-2002
thekid
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Here's a thought, which will work the best if you have root access.

You could check the .sh_history file under the user's home directory as to what was happening with that account in the shell recently.

This type of logging is present on our AIX, PTX, and HP-UX systems, but I'm not sure if it's a feature with all unix flavors.

I'm not positive, but I think there are ways to retain more or less days worth of history in that file.

Hope this helps...
  #3 (permalink)  
Old 03-18-2002
shibz shibz is offline
Registered User
  
 

Join Date: Nov 2001
Location: Inida
Posts: 56
Hi,

Try the 'script' command, this will store the executed commands, and keeps a record of everything printed on ur screen. but only problem is this can be terminated by a ctrl+d.
  #4 (permalink)  
Old 03-19-2002
bbutler3295 bbutler3295 is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 39
script, .sh_history

both of these methods work great thanks alot... saves me a lot of headaces....
  #5 (permalink)  
Old 03-20-2002
simon2000 simon2000 is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 43
I see it on my hp-ux version as sh_history but I am unable to bring show anything ? I cant' "cd" to it nor, cat, tail, more or vi ?

so how do you access this file ?

thanks
simon2000
  #6 (permalink)  
Old 03-20-2002
bbutler3295 bbutler3295 is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 39
Tail user

well i found this file in user's home directory
/home/%username% .sh_history
In any case i would do the following

more /home/%username%/.sh_history
or
cd /home/%username%
more .sh_history
and its .sh_history not sh_history
  #7 (permalink)  
Old 03-20-2002
bbutler3295 bbutler3295 is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 39
Thanks

Oh and i just wanted to let everyone know i am thankfull that i can give the answer to my own post, and i owe that thanks to THEKID, AND SHIBZ... and to everyone that has ever come up with and answer to a question on this forum...
BB
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:12 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0