This is a discussion on Seeking for Shell Logger script! within the Shell scripting forums, part of the Development/Scripting category; hello all,, am seeking for a shell script that logs everything has been logged in the history! for my bad ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
hello all,,
am seeking for a shell script that logs everything has been logged in the history! for my bad luck i did not succeed to do this! i edited the file ".logout" and i added this line history -w sys.log in order to write out what history file contains into sys.log sys.log is existing! but when i "cat sys.log" after re-connecting i see nothing has been wrriten in there! 2- is it possible to log each command i insert into the shell? at the real time? and not while exiting from PuTTy?(saving log to another file and not to .history_history) thanks. |
| Sponsored Links | ||
|
|
|
||||
|
Code:
history -w /tmp/test cat /tmp/test Code:
cd gpass cd /tmp/ mkdir tw cd tw cp /etc/*.conf . ls cp /etc/*.txt . ls cp ~/*.txt . ls ls *.txt zip zip ../file.zip * cd .. unzip unzip file.zip "*.txt"
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to initialize HDD using Shell script? | meimei | Shell scripting | 1 | 05-13-2008 05:21 PM |
| Seeking for vhosts tutorial, name-base | satimis | Web servers | 0 | 02-05-2008 07:40 PM |
| Seeking advice on webmail software | satimis | Mail Servers | 9 | 11-30-2007 08:55 PM |
| writing a shell script to find out my shell name | jaymob123 | Shell scripting | 1 | 10-08-2007 12:36 AM |
| Shell Script dought | Mahesh | Shell scripting | 3 | 02-16-2005 12:13 PM |