It works like a charm, but has only one issue: it continues to loop even after sendmail is found and the mesage is printed. Is there any way to exit the script after sendmail was found, not using the regular if () {} syntax, but the one above??