Re: [Tutor] subprocess module seems to be failing...

2016-06-03 Thread dirkjso...@gmail.com
Add sound of me beating my head with a bat! :) Thanks Peter! -I was a bit too precise in my naming conventions for later review! On 06/03/2016 02:30 PM, Peter Otten wrote: dirkjso...@gmail.com wrote: Running Linux Mint 17.3 Python3.4.3 I'm following a Tutor concerning the subprocess modul

Re: [Tutor] subprocess module seems to be failing...

2016-06-03 Thread Peter Otten
dirkjso...@gmail.com wrote: > Running Linux Mint 17.3 > Python3.4.3 > > I'm following a Tutor concerning the subprocess module which said to > open a Terminal SHELL and type: > > $ python3 > >>> import subprocess > >>> subprocess.call('ls', shell=True) > > Last night the subprocess.call porti

[Tutor] subprocess module seems to be failing...

2016-06-03 Thread dirkjso...@gmail.com
Running Linux Mint 17.3 Python3.4.3 I'm following a Tutor concerning the subprocess module which said to open a Terminal SHELL and type: $ python3 >>> import subprocess >>> subprocess.call('ls', shell=True) Last night the subprocess.call portion was erroring saying their was no 'call' attrib

Re: [Tutor] subprocess module: when to _NOT_ use shell=True

2013-03-11 Thread akleider
Thank you "Eryksun" and "EikeWek" for your responses. It is this sort of thing that begins to pull one out of the newbie into the intermediate category. I'm grateful. alex > I've not found anywhere a clear explanation of when not to set shell=True. > If the command line must be interpreted by the

Re: [Tutor] subprocess module: when to _NOT_ use shell=True

2013-03-10 Thread Eike Welk
On Sunday 10.03.2013 09:56:26 aklei...@sonic.net wrote: > I've not found anywhere a clear explanation of when not to set shell=True. > If the command line must be interpreted by the shell then clearly this > must be set. So the question that comes up is why not set it always? Because ``shell=True`

Re: [Tutor] subprocess module: when to _NOT_ use shell=True

2013-03-10 Thread eryksun
On Sun, Mar 10, 2013 at 12:56 PM, wrote: > I've not found anywhere a clear explanation of when not to > set shell=True. If the command line must be interpreted by > the shell then clearly this must be set. So the question > that comes up is why not set it always? Using the shell can be a securit

[Tutor] subprocess module: when to _NOT_ use shell=True

2013-03-10 Thread akleider
I've not found anywhere a clear explanation of when not to set shell=True. If the command line must be interpreted by the shell then clearly this must be set. So the question that comes up is why not set it always? In an effort to investigate, I came up with the following script that indicates tha

[Tutor] Subprocess module

2008-11-26 Thread Judith Flores
Hello, A couple of weeks ago I posted a question about what documentation I should read in order to implement a way to communicate Python and R. I read about the module 'subprocess', but have not been able to do something very simple. I was wondering if you could tell me how to transfer a Py