I'm guessing because of your use of the term "Command prompt". That you're on a Winboxen.
What you might like to do, is simply do an APPEND to the file that would normally be created, as an attachment, when things work as intended. This would only need the addition of a simple eval to the sub you're already using. Maybe something like:
However, you'll need to use a redirect <, > for which ever text message you choose to use.or die "Sorry Dave. I'm afraid I can't do that"
OH, regarding cron, as mentioned earlier; do they still have the AT scheduler on Windows? That also might be a good alternative.
HTH, and best wishes.
--Chris
#!/usr/bin/perl -Tw use Perl::Always or die; my $perl_version = (5.12.5); print $perl_version;
In reply to Re: How to send the "die" output to e-mail.
by taint
in thread How to send the "die" output to e-mail.
by pmu
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |