in reply to Re: Log's and MD5 Hashes
in thread Log's and MD5 Hashes

This is what I want it to do.... Report to me what files have changed due to different MD5 hashes, and report to me which files have changed. I probably don't understand your reply enough, mind some sudo (sp) code? I'm terribly sorry if I am being dense, probably the weather. Russ

Replies are listed 'Best First'.
Re: Re: Re: Log's and MD5 Hashes
by satanklawz (Beadle) on Jan 31, 2002 at 04:01 UTC
    Okay- I just realized a better phrasing....
    What I am having an issue with is getting the hashes to match up with a file. You can see that in the code I have sofar it opens up the config and runs a hash against all of the lines in the file, then it stores the hashes into a file. The problem lies here for me:

    if ($NEW-HASH-RUN <> $OLD-HASH-RUN) {
    print "The system file: $file is different.";
    }
      You probably want 'ne' rather than '<>' as your MD5 hash isn't just numbers...

      gav^