system return value?



Greetings:

I'm doing the following:

system ("make | tee /tmp/make.log") == 0 || die "Make failed $?\n";

The problem is that the pipe tee is what is getting returned for a
status. Is there anyway around this problem? The make fails but my
script doesn't exit out....

Thanks in advance!
Tom

.



Relevant Pages

  • Re: Error in script "invalid interpreter"
    ... During the install, a script ... > is executed which fails. ... > sh-2.05b$ exit ...
    (Fedora)
  • Re: system return value?
    ... The problem is that the pipe tee is what is getting returned for a ... The make fails but my ... script doesn't exit out.... ...
    (comp.lang.perl.modules)
  • Re: system return value?
    ... The problem is that the pipe tee is what is getting returned for a ... script doesn't exit out.... ... How about launching your "make" in a open call? ... print STDERR $_; ...
    (comp.lang.perl.modules)