Hello Folks,
This is what i am required to do.
Call an executable from my python script, and when the executable is
fininshed running, i should continue with my python script.
I have tried "os.exec()" but it calls the executable and never returns
to the calling python script.
I tried "os.fork" it will start an independent process,
since logic of my program depends on the results of executable.
I am unable to figure, how to do it.
Hope you folks would help me.
~JinBaba 2 7371
In <11**********************@n76g2000hsh.googlegroups .com>, M Abbas wrote:
This is what i am required to do.
Call an executable from my python script, and when the executable is
fininshed running, i should continue with my python script.
I have tried "os.exec()" but it calls the executable and never returns
to the calling python script.
I tried "os.fork" it will start an independent process,
since logic of my program depends on the results of executable.
Take a look at `os.system()` or the `subprocess` module.
Ciao,
Marc 'BlackJack' Rintsch
I've been using subprocess.call(['name','arg1','arg2']) Works fine.
On 2 May 2007 03:48:19 -0700, M Abbas <ab*****@gmail.comwrote:
Hello Folks,
This is what i am required to do.
Call an executable from my python script, and when the executable is
fininshed running, i should continue with my python script.
I have tried "os.exec()" but it calls the executable and never returns
to the calling python script.
I tried "os.fork" it will start an independent process,
since logic of my program depends on the results of executable.
I am unable to figure, how to do it.
Hope you folks would help me.
~JinBaba
-- http://mail.python.org/mailman/listinfo/python-list This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bill Orcutt |
last post by:
Having seen the number of lost souls asking questions about embedding
Python in the archives of this group, I hesitate to add myself to
their number, but I've hit a problem I can't quite get my...
|
by: Natsu Mizutani |
last post by:
Hello,
I'm trying to wrap a c++ library using MPI inside with boost.python
(or SWIG).
I managed to find that calling `MPI::Init()` embeded in a c++ funtion
would not work. So, I decided to use...
|
by: Satish Chimakurthi |
last post by:
Hi all,
My question is surely a basic one, but somehow, I am not able to figure it out.
I have a python file "satish.py" as follows:
*satish.py*
def main():
y()
|
by: F. GEIGER |
last post by:
I've dev'ed a Python prototype of an app, that besides the internals making
it up has a gui. While test-driven dev'ing the app's internals in Python is
fun as usual, dev'ing the GUI is not so...
|
by: Kamilche |
last post by:
What a debug nightmare! I just spent HOURS running my script through
the debugger, sprinkling in log statements, and the like, tracking down
my problem.
I called a function without the ending...
|
by: Stephen Kellett |
last post by:
Hello everyone,
I'm trying to do something in C calling Python and its failing. I'd be
grateful if you could take a look and hopefully you have an answer.
What I'm trying to do is determine...
|
by: Gerald Klix |
last post by:
I read the whol email thread carefully and could not find any sentence by
Guido, which states that he does not accept ctypes for the standard library.
He just declined to rewrite winreg. Did I miss...
|
by: Finger.Octopus |
last post by:
Hello, I have been trying to call the super constructor from my
derived class but its not working as expected. See the code:
class HTMLMain:
def __init__(self):
self.text = "<HTML><BODY>";...
|
by: teju |
last post by:
hi,
i am trying 2 merge 2 projects into one project.One project is using c
language and the other one is using c++ code.
both are working very fine independently.But now i need to merge both...
|
by: Jaco Naude |
last post by:
Hi there,
This is my first post over here and I hope someone can give me some
guidance.
I'm trying to embed Python into a Visual C++ 2008 application and I'm
getting linker problems. I've...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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,...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |