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. 3 1453
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
On Apr 9, 3:11 pm, Noah <n...@noah.orgw rote:
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 modify
PHP config ( max_exec_time,.....).
Is it possible to stop the process if its execution exceeds 10 seconds ?
Is it possible to stop the script if memory use exceeds 4 Mo ?
|
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. There is no
consistency when it fails.
Could anyone here shed some light on how to debug/resolve the issue. I
guess IBM looked at the issue and were not able to pinpoint where the
issue is.
When the program hangs and when force the DB2...
|
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 user to gain the required rights for execution (the external process needs to create a mailbox in Exchange, so it needs to be run as an Exchange Full Administrator-powered user).
For the moment, I have tries using the Start() static method of the...
|
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 specific process is done,, but the
form which will host the user control has to specify what has to be
done
Something like this , if the event is fired it should call the event in
|
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
| |
by: nate |
last post by:
the error returned is this:
Server Error in '/AnnAccRpt' Application.
--------------------------------------------------------------------------------
Could not find control 'DropDownList1' in ControlParameter 'DropDownList1'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
|
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 the data they produced.
This apllicationis a kind of "client" that must work in more that one
SO (for example *NIX, Windows98, Win2000).
So my question is about what kind of "managemet" of this proccess I can
do, and how to start and "monitor"...
|
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 process in hanging and
display the process information on screen with option to kill it or
allow the execution.
I shall be thankful to you if you can help me in this.
|
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 (dll's)
I want these objects run in the background. I have used reflection to
find the assembly and the object type.
I want these objects to run separately to the windows service. Do i
start these objects in a new thread or do they need to start...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |