From: Brian Candler Date: 2003-05-28T06:57:19+09:00 Subject: Re: system calls On Wed, May 28, 2003 at 01:56:41AM +0900, J.Hawkesworth wrote: > Don't know if this helps but I recall that in perl you have to divide by > 256 to get the real return value. (Tried to test here but running under > Windows and therefore have no 'fork' to eat really_cool_system with). Hmm, I thought that Windows (32 bit) did have those things. Oh well. The problem is not that the exit code needs to be divided by 256 (which indeed it does), but that it's wrong: 65280 gives an exit code of 255, even though the process terminated correctly with an exit code of 0. Regards, Brian.