1 Replies - 1143 Views - Last Post: 21 October 2009 - 11:33 AM Rate Topic: -----

#1 mj2bm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 13-July 09

Bash Script to Compare Log Files

Post icon  Posted 21 October 2009 - 09:33 AM

Good Afternoon,

I'm looking for advice on creating a simple bash script on a linux box to check one of my log files.

I have a service that will periodically stop on the server so I'd like to create a script ( I will add it to cronjob) that creates a md5 checksum
of the log file every half hour or so...and compares it to the prior one.

If these two log files are equal...well means that logging has stopped and in turn so has my service.

Most likely an email and/or restart of this service is my ultimate goal.

Just looking for some input and/or pointers.
Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Bash Script to Compare Log Files

#2 mj2bm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 13-July 09

Re: Bash Script to Compare Log Files

Posted 21 October 2009 - 11:33 AM

Nevermind...I was able to write up a script that is working as needed. Thanks.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1