python,running command line servers - they're not listening properly
Posted
by deepblue
on Stack Overflow
See other posts from Stack Overflow
or by deepblue
Published on 2010-06-01T06:39:15Z
Indexed on
2010/06/01
6:43 UTC
Read the original article
Hit count: 372
hello all
Im attempting to start a server app (in erlang, opens ports and listens for http requests) via the command line using pexpect (or even directly using subprocess.Popen()).
the app starts fine, logs (via pexpect) to the screen fine, I can interact with it as well via command line...
the issue is that the servers wont listen for incoming requests. The app listens when I start it up manually, by typing commands in the command line. using subprocess/pexpect stops the app from listening somehow...
when I start it manually "netstat -tlp" displays the app as listening, when I start it via python (subprocess/pexpect) netstat does not register the app...
I have a feeling it has something to do with the environemnt, the way python forks things, etc. Any ideas?
thank you
© Stack Overflow or respective owner