Don't ask to ask, just ask | |
PerlMonks |
system function is returning status -1 when running a unix commandby elf_firein (Acolyte) |
on Apr 08, 2009 at 05:07 UTC ( [id://756229]=perlquestion: print w/replies, xml ) | Need Help?? |
elf_firein has asked for the wisdom of the Perl Monks concerning the following question:
I am facing a strange problem with perl code. I have a perl package abc.pm which has following subroutine:
This method is for connecting to database Inside my own .pl file I am using this subroutine in following manner:
The problem is:the value of $stat1 is 0 but value of $stat2 is -1. though the .gz file is same in same location. In Solaris 8 box but in $stat1 & $stat2 have values 0 for both. But in solaris 10 box giving to two differnt output:$stat1=0 & $stat2=-1 I have also printed $!: For $stat2 it is showing error message: / No child process/
Can anybody please help me? Please it is urgent.
Back to
Seekers of Perl Wisdom
|
|