Hello Lars and thanks for your reply
Maybe use timeout(1) to send a signal (e.g. USR1) and have your script trap that signal and send a mail when it receives it?
something like it, yepif a process take long time, I need have a notification by email without change executing of that process.
Pol