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:"
3) Finally:
"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!