By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,096 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,096 IT Pros & Developers. It's quick & easy.

popen close my application in a return code, how can i avoid this??

P: 1
I'm developing an application with Python to interact buttons with a console based programm with which I work usually.For this i'm using subprocess library to communicate with my application, but my application close before expected.
Here is an example
import sys
from subprocess import *
pInput = Popen('eqsim', stdin=PIPE, shell=True)
pInput.communicate(input="run eqsimcommand")


EQSIM 3.0 #R: Wed Jul 12 23:09:07 1995
Copyright (C) 1989-1991, EB Signal.
All rights reserved.
1> The file does not exist: /export/claudia/home/ccm_archive/eqsimcommand
("this sentence is a normal answer from my programm "eqsim"")
the application close and stop running,

could anybody help to avoid this application not to close and to have an interative talking with the application?

Thank you
Nov 22 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.