>
>
>
> -- Forwarded message --
>> From: Steven D'Aprano
>> 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:
&g
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 = subprocess.Popen(shlex.split(capture_ser
On Wed, Apr 16, 2014 at 8:47 PM, Влатко Станковиќ 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 using a list of separ
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,
stderr=subprocess.PI
> danshumaker (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 back
tions.
-d
--
View this message in context:
http://www.nabble.com/Background-subprocess-help--tp23680206p23680206.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
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
--
http://mail.python.org/mailman/listi
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'v
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