by: Toon Verstraelen |
last post by:
Hi,
I recently had a thread problem and I could reduce it to a very short
example that shows the problem. I hope it has its origin in my
misunderstanding of how python threads work. Here it is:...
|
by: 7stud |
last post by:
I have this program:
mytest.py
--------------
myinput = raw_input("Enter input: ")
if myinput == "hello":
print "goodbye"
--------------
|
by: gregpinero |
last post by:
Let's say I have this Python file called loop.py:
import sys
print 'hi'
sys.stdout.flush()
while 1:
pass
And I want to call it from another Python process and read the value
'hi'. How...
|
by: bhunter |
last post by:
Hi,
I've used subprocess with 2.4 several times to execute a process, wait
for it to finish, and then look at its output. Now I want to spawn
the process separately, later check to see if it's...
|
by: Marko Rauhamaa |
last post by:
This tiny program hangs:
========================================================================
#!/usr/bin/env python
import subprocess
a = subprocess.Popen('cat',shell = True,stdin =...
|
by: skunkwerk |
last post by:
Hi,
i'm trying to call subprocess.popen on the 'rename' function in
linux. When I run the command from the shell, like so:
rename -vn 's/\.htm$/\.html/' *.htm
it works fine... however when I...
|
by: grayaii |
last post by:
There are so many threads on this subject, but I ran across a
situation on Windows that I can't figure out.
I'm trying to run this little command-line exe and when I launch like
this, it hangs:...
|
by: dudeja.rajat |
last post by:
On Mon, Sep 8, 2008 at 11:50 AM, <dudeja.rajat@gmail.comwrote:
Ok, I re-phrase my question:
there is a batch file that executes a exe file. The batch just works
if run from command prompt and...
|
by: Christian Heimes |
last post by:
Kenneth McDonald wrote:
The subprocess module has already an API method for your use case. The
communicate() method of a subprocess.Popen instance takes an optional
stdin string and returns the...
|
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: 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...
|
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: 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,...
|