Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
XP is just a number
 
PerlMonks  

Re: system command erroneously states 'can't spawn <executable>'

by jimbojones (Friar)
on Feb 25, 2005 at 11:49 UTC ( [id://434558]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to system command erroneously states 'can't spawn <executable>'

Hi

The issue, and the error message, aren't from DOS, they're from Perl source code in win32.c. If the system returns a negative error code, the Perl C code spits out that warning, and sets $? to 255 * 256, which you bit shift down to 255.

I don't know how (yet) to raise a bug issue with the Perl source, but perhaps that error can be checked for which version of the windows perl is running on, and only return it for Windows OSs that don't support negative error codes.

- j

  • Comment on Re: system command erroneously states 'can't spawn <executable>'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://434558]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.