XP is just a number | |
PerlMonks |
Inappropriate ioctl for device using Phi.pm on system callby To_Bz (Novice) |
on May 19, 2014 at 22:19 UTC ( [id://1086722]=perlquestion: print w/replies, xml ) | Need Help?? |
To_Bz has asked for the wisdom of the Perl Monks concerning the following question: Hello Monks, I'm getting the following error message from a perl module called Phi.pm. I can not execute the PHI test: Phi: Inappropriate ioctl for device at /biologia-scratch3/mc.martinez297/programs/Unus-master/Unus/Test/Phi.pm line 63 First, I thought it was a problem related with permissions, so I changed them. This module has read and execution permissions. So, then I looked the line 63, and I have the following: 61 chdir "$aln.phi"; 62 system "$phi -f '$aln' &>$aln.phi/Phi.out"; 63 LOGDIE "I can not execute the PHI test: $phi:\n$!" unless $?==0; 64 -s "Phi.log" or LOGDIE "PHI test ($phi -f '$aln' &>$aln.phi/Phi.out) returned an empty output, please check '$aln.phi/Phi.out' to inspect the reason s."; I read the recomendations in http://www.perlmonks.org/?node_id=589324 , and they recommended to erase $! but I don't know what to do with $?==0, since $! and $? are "different types of error conditions"(http://perldoc.perl.org/perlvar.html) However, I still don't understand what is happening with these variables. I'm new in Perl, so I'll appreciate the help
Back to
Seekers of Perl Wisdom
|
|