Shell script to execute the alert logic