SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

command history v1.1 is (c) 2000 Suso Banderas

**PLEASE ALSO READ THE WARNING FILE THAT**

**COMES WITH THIS PROGRAM.**

Description - command history is a program that outputs all

                the commands run on the current day by users
                specified on the command line.

This program isn't much to talk about right now other than what's in the description. I didn't even plan to release this program, but I figured what the hell.

Installation

Just run 'make install' or put the executeable script someplace in your path like:

/sbin or /usr/sbin

How to use

The program must be run by root or some other super privledged user if you plan to be able to read other user's .bash_history files.

All you do to run the program is give it one or more user names as arguments:

~$ command_history user1 user2 user3

I run it from cron everyday one minute before midnight with an /etc/crontab entry like this:

59 23 * * * root /usr/bin/command_history `cat /etc/passwd | awk -F: {'print $1'}`

As long as your /etc/passwd file isn't terribly long, it should be ok to run it one minute before midnight like that.

Contact

Please send bug reports, suggestions, requests or correspondence to Suso Banderas at 'suso@suso.org'. You can visit the homepage for this program at:

http://suso.org/~suso/command_history/


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.