LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > rameshj
User Name
Password

Notices


Uncategorized Entries with no category
Old

Logging of every command & it's output

Posted 04-18-2008 at 03:58 AM by rameshj

Hi,

I have a requirement which need to log each and every command executed on the a linux/solaris/hpux machine console. I did this by using "script" command. For enable logging, I have put the following entry in the /etc/profile file.


function log_me {
DATE="/bin/date"
SCRIPT="/usr/bin/script -q"
COL="/usr/bin/col"
HOSTNAME=`hostname`
if [ -d "${LOGBASE}/${USERNAME}"...
LQ Newbie
Posted in Uncategorized
Views 755 Comments 0 rameshj is offline

  



All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
Advertisement
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
Open Source Consulting | Domain Registration