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
> "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
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
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