Re: something is killing my perl script

2004-06-04 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [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

Re: something is killing my perl script

2004-06-03 Thread Claude
> "Parker" == Parker Richard-A19798 <[EMAIL PROTECTED]> writes: [...] Parker> What happens is that for no particular reason that I can find, Parker> the program dies. Parker> What do I put in to find out what killed it or what it died from? I have no idea, but I thought this code is more con

Re: something is killing my perl script

2004-06-03 Thread Dave Barnett
Rick: Well, as a first idea, when you run a command via backticks (`), I believe the $? variable gets set with the return value. Most people don't check it. See perldoc -f system to see how to decode the return value. Might I suggest a more Perl-centric way of doing this, as well as a few

something is killing my perl script

2004-06-02 Thread Parker Richard-A19798
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? #!/usr/bin/perl open (KERNFIFO, "cat /dev/log