The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with the History command cleansing_flame UNIX for Dummies Questions & Answers 2 02-04-2008 12:25 PM
Command history in AIX priya_v111 Shell Programming and Scripting 2 09-18-2006 02:48 PM
Command history a25khan UNIX for Dummies Questions & Answers 8 12-10-2003 06:05 AM
command history vikasdeshmukh UNIX for Dummies Questions & Answers 3 11-14-2001 05:37 AM
History Command jack UNIX for Dummies Questions & Answers 2 08-01-2001 01:01 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 08-31-2005
akash_wagh akash_wagh is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 1
History command

I am working on solaris and audit is not configured on server.
I get last commands used on server by HISTORY command, but I want some extra information like by which user command fired & by which host id
Because same time we have many people use one login & fire commands
& want History command with above information.

Please if any body can help me to do so without using audit

AKASH
  #2 (permalink)  
Old 01-20-2009
jf.carman jf.carman is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 1
Do you have the information about this tread?
I am looking for the same requirement.

I need to know who did each command in the history command.
Best regards.
  #3 (permalink)  
Old 01-22-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,168
You could start a unique history file per session. These will need deleting after a period of time. See "HISTFILE" in the man for your shell.

For example in user .profile file:

DATEX=$(date +%Y%m%d%H%M%S)
TTYX=$(basename $(tty))
HISTFILE=".sh_history_${DATEX}_${TTYX}"
echo "HISTFILE=${HISTFILE}"

Last edited by methyl; 01-22-2009 at 01:47 PM..
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 03:19 AM.


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