What should I look into to achieve the following? (maybe a bash script?)
1) Save in a log file info.txt:
"User johndoe has logged on at xx:xx on (date)"
2) Then append the following:
"User johndoe has executed the following commands:"
"User johndoe has logged out at xx:xx on(date)".
I've checked this link
, which seems pretty close to what I want... Any suggestions will be more than welcome!