Log file that tells when and how often the script run
by ivonak from LinuxQuestions.org on (#4T0SF)
Hello, as a task for practicing I have to write a bash script, and 2 of the tasks sound like this:
- I as an administrator must be able to tell if the install script did all the necessary steps
- I as an administrator must be able to tell when and how often the script run
So if I understand correctly, I have to make a log file and that log file has to have a timestamp when did the script run and everytime I run the script it has to be written in that log file..
So I tried to google it but I'm really confused with stuff that I read, and especially with the fact that it has to be written for a script. Can anyone tell me some suggestions for this please :(


- I as an administrator must be able to tell if the install script did all the necessary steps
- I as an administrator must be able to tell when and how often the script run
So if I understand correctly, I have to make a log file and that log file has to have a timestamp when did the script run and everytime I run the script it has to be written in that log file..
So I tried to google it but I'm really confused with stuff that I read, and especially with the fact that it has to be written for a script. Can anyone tell me some suggestions for this please :(