I have a script that is scheduled to run every 15mins on my CPE’s but the problem ones give 96 emails per day like this one below ( note - the email subject line has all the data i need )
“AP Identity : CPE Identity : 16:21:54: jul/10/2017: XXX ping avg: 134-ms Sent:200 Received:200 SNR: 37 Signal: -81 Noise: -118”
Is there any way I could save my script results to a file and then run a script to analyze the file and sent just one daily email with the results,
any help is most welcome
write results to the separate log file and once per day send this file by email. after sending you can delete file
there was a topic on the forum about separate log file. the only problem was - file deletes both in two situations - email was send and not send (for example if mail server was not reachable)