perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <embp...@7thfire.com>
Subject handling system call exit status
Date Fri, 15 Jul 2005 21:29:11 GMT
Hi,

Sometimes I see strange numbers when handling exit status from system
calls.

    my $out = `$cmd`;
    my $stat = $? >> 8;

and $stat may contain anumber like  16777215 at this point, whereas on
commandline it would be more like 2, or no error at all (0).

How can I deal with this? I do want to report an error on failure, but
now I'm stuck reporting false errors.

MOD_PERL' => 'mod_perl/1.29'

-d



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message