473,395 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Control process execution

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
3 1435
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lionel Gondy | last post by:
I'am using php 4.3.4 under linux. My php script connects to a NNTP server and I want to control execution time and memory use of this script. PHP is compiled without pcntl support and I can not...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
10
by: Sorin Dolha [MCSD .NET] | last post by:
I would like to start a process from C# code as another user. The C# code is executed as the ASPNET user because it relies in a Web Page class, and I would like that the process will run as another...
4
by: thomson | last post by:
Hi all, i do have a user control with 4 buttons, and all the events are firing properly, My problem is that i need to right an event handler in the user control, which gets fired after a...
0
by: Pavan | last post by:
My name is Pavan and I am a software engineer working on ASP .Net web development. Currently I am using .Net 2.0 Professional Edition to develop my web pages. I have a problem
0
by: nate | last post by:
the error returned is this: Server Error in '/AnnAccRpt' Application. -------------------------------------------------------------------------------- Could not find control 'DropDownList1' in...
8
by: =?ISO-8859-15?B?TnXxbw==?= I.G | last post by:
Hello to everybody: I'm trying to get some information about "process management". Let's explain a little... I want to write some code that allows me to execute some "aplications" and collect...
5
by: Alok Gupta | last post by:
Hi There, I want to develop a small software which can control process execution as AntiVirus does. That is as soon as any process start execution/ started /executed , my software will put this...
2
by: Erick | last post by:
I've create a windows service which will start any windows application whose name it finds in an xml file i have pointed it to. However, I also want it to create .net objects from assemblies...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.