View Single Post

  #1 (permalink)  
Old 05-31-2008, 12:43 AM
eawedat eawedat is offline
Member
User
 
Join Date: May 2008
My distro: Debian
Posts: 42
Rep Power: 0
eawedat is on a distinguished road
Default Seeking for Shell Logger script!

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.
Reply With Quote