» An ultimate catalog of computer data
Forum posts for start1.exe
Utility started from python code doesn't write in file
I have two utilities written in C++, TCP/IP server and client that I have used for years.
Server opens designated file and waits for client to connect. After connection has been established the server starts to send file's content. The client receives it and saves in a file.
Now, I want to write a python script to start both application and wait for them to finish. After that script will do some other work. It is written for Windows.
It is my first script in python. And my first problem is that I can see that both applications have started and connected to each other. I can see it because two DOS windows appears and show messages that inform me about connection.
However, I don't see a file, which has to be created by the client. What is wrong. Code is very simple and follows.
import subprocess
p = subprocess.Popen('C:MyProjectsexesFeedSender_exeFeedSender.exe C:MyProjectsexesFeedSender_exeFeedSender.ini')
print 'Start1'
p1 = subprocess.Popen('C:MyProjectsexesFeedReaderFileProcessorFeadReaderi41.exe C:MyProjectsexesFeedReaderFileProcessorConfig.ini')
print 'Start2'
for line in p.stdout.readlines():
print line,
retval = p.wait()
print 'Finish1'
retval = p1.wait()
print 'Finish2'
View complete forum thread with replies
Other posts related to start1.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Calculate if 2 or more dates overlap
generate word document
extract a stored png image from a binary file the right way
Utility started from python code doesn't write in file
Interpret Variable in Powershell { } scriptblock
save word document that's been created dynamically using SaveFileDialog?
Getting error when opening word document using Word Interop C#
Using Rx Repeat() and Replay() to cache and restart a DNS query