In your connect parameters, pass RaiseError => 1 and try this:

  eval { $st2->execute };
  if (my $err = $@) {
      adminmail($err), exec("$workdir/msmonbackup.pl");
  }

Exceptions are your friends!
Ahhhh, thanks ! Great idea.

I'll try....

Best regards,

Stephan

Reply via email to