Re: something is killing my perl script
[email protected] ((Peter Scott)) 3 Jun 2004 16:44:40 -0000
| Newsgroups | perl.debugger |
|---|---|
| Organization | Pacific Systems Design Technologies |
| Message-ID | <[email protected]> |
In article <EDFB2B1ED0A1D7118A0A00065BF2490D03488B1E@il06exm13>, [email protected] (Parker Richard-A19798) writes: >I have a program that I wrote which take input from a pipe and then distributes >to certain log files. > >What happens is that for no particular reason that I can find, the program dies. > >What do I put in to find out what killed it or what it died from? Others are addressing the program itself, but a general answer to your question is to insert use Carp qw(confess); $SIG{__DIE__} = sub { confess @_ }; near the top of your program. You should then get more information when it dies. -- Peter Scott http://www.perldebugged.com/ *** NEW *** http://www.perlmedic.com/