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.
|