Re: subprocess help

2014-04-17 Thread Влатко Станковиќ
> > > > -- 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

Re: subprocess help

2014-04-16 Thread Steven D'Aprano
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

Re: subprocess help

2014-04-16 Thread Chris Angelico
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

subprocess help

2014-04-16 Thread Влатко Станковиќ
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

Re: Background subprocess help?

2009-05-24 Thread Piet van Oostrum
> 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

Background subprocess help?

2009-05-22 Thread danshumaker
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

Re: pre subprocess help needed

2005-08-02 Thread [EMAIL PROTECTED]
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

Re: pre subprocess help needed

2005-08-02 Thread Chris Lambacher
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

pre subprocess help needed

2005-08-02 Thread chuck
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