The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
csh History aladdin UNIX for Dummies Questions & Answers 8 01-25-2008 03:39 AM
History JuniorJack UNIX for Dummies Questions & Answers 2 06-02-2005 01:37 AM
Any History igorsch Linux 1 09-25-2004 09:45 AM
history tselvanin UNIX for Dummies Questions & Answers 2 09-23-2003 12:40 AM
history in ksh vince_ascend Shell Programming and Scripting 5 11-08-2001 01:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-27-2008
mirusnet's Avatar
Registered User
 

Join Date: Dec 2007
Posts: 139
history

I need the script that will write to a file all commands which were executed
and the time for all of this commands.
Or maybe it can be done with history, or script utility (bash)?
Reply With Quote
Forum Sponsor
  #2  
Old 01-27-2008
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
What you want to do can easily be done in the bash shell. For timestamps, just set HISTTIMEFORMAT. Check out HISTFILE, HISTSIZE, HISTFILESIZE, HISTCONTROL, HISTIGNORE also.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0