if [[ “$time_param” == “minutes” && “$time_value” -ge 1 ]] then mailx -s “DREAIDB LAG is in minutes ” [email protected] <DB_DG_DATABASE.log else if [[ “$time_param” == “seconds” && “$time_value” -ge 30 ]] then
mailx -s “DREAIDB LAG is in seconds ” [email protected]<DB_DG_DATABASE.log
else if [[ “$time_param” == “hour(s)” && “$time_value” -ge 1 ]] then
mailx -s “DREAIDB LAG is in hours ” [email protected] <DB_DG_DATABASE.log fi fi fi