Hi, we need a script that compares 2 files, and if there are any differences mail them.
Right now we make a diff redirected to a file, and we mail that file, but this always sends a mail, even when there are no differences.
I know I have seen in one of these forums the way to do this, but right now I'm not finding the post.
How can I prevent my script from sending a mail if there are no differences?
Thanks
Right now we make a diff redirected to a file, and we mail that file, but this always sends a mail, even when there are no differences.
I know I have seen in one of these forums the way to do this, but right now I'm not finding the post.
How can I prevent my script from sending a mail if there are no differences?
Thanks