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

Control process execution

P: n/a
Hi all,
I am trying to create a test environment to a couple C applications
(simple UDP and TCP server/clients), so I want to write this in python
and I m looking for ways to do it. Basically I need an execution timer
and timeout control (to kill the apps in certain situations). Looking
at google, I found the Pexpect package, but I m a little bit lost in
using it.

So, any good suggetions?

Thanks in advance.
Apr 6 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Apr 6, 5:30 am, Wesley Mesquita <wesleymesqu...@gmail.comwrote:
I am trying to create a test environment to a couple C applications
(simple UDP and TCP server/clients), so I want to write this in python
and I m looking for ways to do it. Basically I need an execution timer
and timeout control (to kill the apps in certain situations). Looking
at google, I found the Pexpect package, but I m a little bit lost in
using it.
Pexpect might be good. But if you are just looking at running an
application
without talking to it interactively then you might be able to just get
by
with os.process.

--
Noah
Apr 9 '08 #2

P: n/a
On Apr 9, 3:11 pm, Noah <n...@noah.orgwrote:
On Apr 6, 5:30 am, Wesley Mesquita <wesleymesqu...@gmail.comwrote:
I am trying to create a test environment to a couple C applications
(simple UDP and TCP server/clients), so I want to write this in python
and I m looking for ways to do it. Basically I need an execution timer
and timeout control (to kill the apps in certain situations). Looking
at google, I found the Pexpect package, but I m a little bit lost in
using it.

Pexpect might be good. But if you are just looking at running an
application
without talking to it interactively then you might be able to just get
by
with os.process.

--
Noah
As far as I know, there is no "os.process". Maybe you meant os.system
or the subprocess module?

Mike
Apr 9 '08 #3

P: n/a
On Apr 9, 1:57 pm, Mike Driscoll <kyoso...@gmail.comwrote:
As far as I know, there is no "os.process". Maybe you meant os.system
or the subprocess module?

Mike
Yeah, I was thinking "subprocess" module.
--
Noah
Apr 9 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.