On 01/12/16 01:12, Chris Kaynor wrote:
> On Wed, Nov 30, 2016 at 4:54 PM, duncan smith wrote:
>>
>> Thanks. So something like the following might do the job?
>>
>> def _execute(command):
>> p = subprocess.Popen(command, shell=False,
>> stdout=subprocess.PIPE,
>>
On 01/12/16 00:46, Chris Kaynor wrote:
> On Wed, Nov 30, 2016 at 4:12 PM, duncan smith wrote:
>> On 30/11/16 17:57, Chris Angelico wrote:
>>> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
def _execute(command):
# shell=True security hazard?
p = subprocess.Popen(c
On Wed, Nov 30, 2016 at 4:54 PM, duncan smith wrote:
>
> Thanks. So something like the following might do the job?
>
> def _execute(command):
> p = subprocess.Popen(command, shell=False,
> stdout=subprocess.PIPE,
> stderr=subprocess.STDOUT,
>
On 30/11/16 17:53, Chris Kaynor wrote:
> On Wed, Nov 30, 2016 at 9:34 AM, duncan smith wrote:
>> Hello,
>> I have had an issue with some code for a while now, and I have not
>> been able to solve it. I use the subprocess module to invoke dot
>> (Graphviz) to generate a file. But if I do this
On Wed, Nov 30, 2016 at 4:12 PM, duncan smith wrote:
> On 30/11/16 17:57, Chris Angelico wrote:
>> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
>>>
>>> def _execute(command):
>>> # shell=True security hazard?
>>> p = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
>>>
On 30/11/16 17:57, Chris Angelico wrote:
> On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
>>
>> def _execute(command):
>> # shell=True security hazard?
>> p = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
>> stdout=subprocess.PIPE,
>>
On Thu, Dec 1, 2016 at 4:34 AM, duncan smith wrote:
>
> def _execute(command):
> # shell=True security hazard?
> p = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
> stdout=subprocess.PIPE,
> stderr=subprocess.STDOUT,
>
[snip]
Sorry, should have said Python 2.7.12 on Ubuntu 16.04.
Duncan
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Nov 30, 2016 at 9:34 AM, duncan smith wrote:
> Hello,
> I have had an issue with some code for a while now, and I have not
> been able to solve it. I use the subprocess module to invoke dot
> (Graphviz) to generate a file. But if I do this repeatedly I end up with
> an error. The fol