-- Forwarded message --
From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info
To: python-list@python.org
Cc:
Date: 16 Apr 2014 12:06:16 GMT
Subject: Re: subprocess help
On Wed, 16 Apr 2014 12:47:03 +0200, Влатко Станковиќ wrote:
Hello,
I'm having some sort
Hello,
I'm having some sort of 'problem' when using subprocess calls.
This is the code snipet that i am using:
capture_server1 = '''xvfb-run --auto-servernum ... '''
server1_download =
subprocess.Popen(shlex.split(capture_server1),stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
On Wed, Apr 16, 2014 at 8:47 PM, Влатко Станковиќ l...@linuxmail.org wrote:
capture_server1 = '''xvfb-run --auto-servernum ... '''
server1_download = subprocess.Popen(shlex.split(capture_server1)
Separate to your actual problem: Is there a reason for splitting like
that, rather than simply
On Wed, 16 Apr 2014 12:47:03 +0200, Влатко Станковиќ wrote:
Hello,
I'm having some sort of 'problem' when using subprocess calls. This is
the code snipet that i am using:
capture_server1 = '''xvfb-run --auto-servernum ... '''
server1_download =
danshumaker dan.shuma...@comcast.net (d) wrote:
d Hi,
d I'm trying to do something as simple as this:
d sleep 10; mail -s test dans communicate_with_process
d which executes immediately because it is backgrounded with .
d or more generically in english:
d do some long process in the
on modules to try or quick subprocess commands
that work? This came close
http://docs.python.org/library/subprocess.html#replacing-shell-pipeline but
no cigar too.
Thank you so much for any help or suggestions.
-d
--
View this message in context:
http://www.nabble.com/Background-subprocess-help
I need to execute a command shell process obtain the return code and
capture stdout from that shell process. I've done this with 2.4 using
subprocess. How do I do it with 2.3?
--
http://mail.python.org/mailman/listinfo/python-list
There is a version of subprocess for 2.3.
http://www.lysator.liu.se/~astrand/popen5/
http://effbot.org/downloads/#subprocess
On Tue, Aug 02, 2005 at 10:05:00AM -0700, chuck wrote:
I need to execute a command shell process obtain the return code and
capture stdout from that shell process. I've
You can also use the spawn functions in os, together with the P_WAIT
mode.
os.spawnlp(os.P_WAIT, 'ls', 'ls')
gconfd-martin kde-martin mcop-martin ssh-PhJzdB6333
gpg-bSRhOE ksocket-martin orbit-martin
0
os.spawnlp(os.P_WAIT, 'spam', 'spam')
127
--