---------- Forwarded message ----------
Date: Tue, 16 May 2006 11:50:32 -0700 (PDT)
From: Jerome Jabson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [Tutor] Running Java process doesn't return to subprocess.call

Hi Danny,

I actually changed that just before I sent the email
to tutor, cause I'd seen a reference on the web about
a Java process in Zope hanging. And the fix was to
have errfile set to None. It did NOT fix the problem.
It actually cause a Java Expection now! :-(

The Java program expect nothing from input. So I'm
still stumped on why this is hanging. Is there any
insight you have on why a Java process would hang like
that? I use the same function in other programs and it
works just fine.

Thanks again for your help!
Jerome
On Mon, 15 May 2006, Jerome Jabson wrote:

> I'm running a Java process from my python script
using the subprocess
> module. But there seems to be some problem with the
return code to
> subprocess and the Java program is just hanging
waiting for something.

Hi Jerome,

I see that you're using subprocess.call():

      retval = subprocess.call(cmd, 0, None,
None,outptr, None)

I expected to see some reference to 'errFile' in the
call here; otherwise,
the java subprocess won't know that you want to dump
error output there.

Does your Java program expect anything out of standard
input as well?



Best of wishes!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to