curl-users
RE: curl return code 139
Date: Tue, 10 Jul 2001 09:48:44 +0200
> I'm calling curl from a python script (using os.system() which
> returns the exit status). I first divide the exit code by
> 256 (because the code I want is in the upper 8 bits right?).
That might be the behaviour of the system() command, but not
curl.
> I first check to make sure it's divisible by 256 (which is
> was in my case). But the code (after / 256) was 139.
Strange. Curl should not be able to return such an error code.
> What error is that? I'm having trouble getting a verbose
> printout of the curl call because the -v option is what seems
> to cause the 139 error! And even weirder, calling curl
> on www.python.org causes the error while www.yahoo.com (for
> instance) does not.
>
> Has anyone seen anything like this?
No. But I haven't used python either.
Maybe you should try to use os.popen() or even os.popen3()
to be able to capture the output from curl.
/Linus
Received on 2001-07-10