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,
>
mat)
>> File "dot.py", line 921, in to_image
>> _execute('%s -T%s -o %s' % (prog, format, filename))
>> File "dot.py", line 887, in _execute
>> close_fds=True)
>> File "/usr/lib/python2.7/subprocess.py", line 711, in __
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
quot;, line 887, in _execute
> close_fds=True)
> File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
> errread, errwrite)
> File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child
> self.pid = os.fork()
> OSError
b/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1235, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
The relevant (AFAICT) code is,
def to_image(text, filename, prog=
10 matches
Mail list logo