Article 4T0SF Log file that tells when and how often the script run

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 :(latest?d=yIl2AUoC8zA latest?i=FhHPoCLb_ls:0QSDURhTd2M:F7zBnMy latest?i=FhHPoCLb_ls:0QSDURhTd2M:V_sGLiP latest?d=qj6IDK7rITs latest?i=FhHPoCLb_ls:0QSDURhTd2M:gIN9vFwFhHPoCLb_ls
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments