Relative Content

Tag Archive for linuxbashrhel

How can i set alerts through bash based on dates?

I am writing a script that provides me dates with update times. I am trying to figure out how I can have the script let me know when something is past a certain time frame. For example if i have 100 workstations that have update date of May 1st but three of them have an update date of April 1st, i want it to be able to tell me that these 3 workstations are not up to date. It would be ideal if this script can somehow tell me when something hasn’t been updated in 45 days or if there is an update date past 45 days.