• In my work, network element configuration files downloaded automatically in hourly basis to the 3rd party server, I have configured the folder where the files downloaded on it as local Repo.
• Recently, git schedule created to check the differences between the existing files with new downloaded files as below
cmd /c ""C:\Program Files\Git\bin\bash.exe" --login -i -- D:\test.sh"
D:\test consist the following commands
git diff -U5 | tail +3
• The above task created using windows Task Scheduler to difference between the existing files and new files, the results appear as shown in below example diff
- !ip address xx.xx.xx.xx
+ !ip address xx.xx.
vrrp vrid 2 virtual-ip xx.xx.xx.xx master
Using git bash, how can send automatic email for all the changes appear above in hourly basis, what I mean is after the scheduler executed and appear differences I need to send all the differences appear by email.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)