On 2008-02-28, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> I hope it's more clear now. Python objects are only meaningful *inside* a
> Python program, but an *external* program can't use them directly.
Yes, sorry. This is what I was getting hung up on. My thinking was that
subprocess was orch
En Thu, 28 Feb 2008 15:22:21 -0200, Ian Clark <[EMAIL PROTECTED]>
escribió:
> On 2008-02-28, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>> En Thu, 28 Feb 2008 14:29:04 -0200, Ian Clark <[EMAIL PROTECTED]>
>> escribió:
>>
>>> On 2008-02-27, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
En
On 2008-02-28, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> En Thu, 28 Feb 2008 14:29:04 -0200, Ian Clark <[EMAIL PROTECTED]>
> escribió:
>
>> On 2008-02-27, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>>> En Wed, 27 Feb 2008 15:06:36 -0200, Ian Clark <[EMAIL PROTECTED]>
>>> escribi�:
>>
En Thu, 28 Feb 2008 14:29:04 -0200, Ian Clark <[EMAIL PROTECTED]>
escribió:
> On 2008-02-27, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>> En Wed, 27 Feb 2008 15:06:36 -0200, Ian Clark <[EMAIL PROTECTED]>
>> escribi�:
>>
>>> On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
Hi,
>>
On 2008-02-27, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> En Wed, 27 Feb 2008 15:06:36 -0200, Ian Clark <[EMAIL PROTECTED]>
> escribi�:
>
>> On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> I would like to raise an exception any time a subprocess tries to read
>>> fro
En Wed, 27 Feb 2008 18:59:59 -0200, Michael Goerz
<[EMAIL PROTECTED]> escribi�:
>> Try with stdin=open("/dev/full") or stdin=open("/dev/null")
> using /dev/null works in my specific case (in my posted minimal example
> I still have to press Enter, but in the real program it causes pdflatex
> to
Grant Edwards wrote, on 02/27/2008 04:34 PM:
> On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I would like to raise an exception any time a subprocess tries to read
>> from STDIN:
>>
>> latexprocess = subprocess.Popen( \
>> 'pdflatex' + " " \
>> + 'test' +
On 2008-02-27, Grant Edwards <[EMAIL PROTECTED]> wrote:
> ret1 = os.system('latex batchmodeinput %s' % 'label1.tex')
At least for tetex under Linux, there's also a command line
option to put TeX into batch mode:
latex -interaction=batchmode file.tex
I don't know if TeX on other platform
On 2008-02-27, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I would like to raise an exception any time a subprocess tries to read
>> from STDIN:
>>
>> latexprocess = subprocess.Popen( \
>> 'pdflatex' + " " \
>>
On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to raise an exception any time a subprocess tries to read
> from STDIN:
>
> latexprocess = subprocess.Popen( \
> 'pdflatex' + " " \
> + 'test' + " 2>&1", \
> shell=True, \
> cwd=os.g
Gabriel Genellina wrote, on 02/27/2008 03:26 PM:
> En Wed, 27 Feb 2008 15:06:36 -0200, Ian Clark <[EMAIL PROTECTED]>
> escribi�:
>
>> On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> I would like to raise an exception any time a subprocess tries to read
>>> from STDIN:
>>>
En Wed, 27 Feb 2008 15:06:36 -0200, Ian Clark <[EMAIL PROTECTED]>
escribi�:
> On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I would like to raise an exception any time a subprocess tries to read
>> from STDIN:
>>
>> latexprocess = subprocess.Popen( \
>> 'pdflatex'
Ian Clark wrote, on 02/27/2008 12:06 PM:
> On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
>> I would like to raise an exception any time a subprocess tries to read
>> from STDIN:
>> latexprocess = subprocess.Popen( \
>> 'pdflatex' + " " \
>> + 'test' + " 2>&1", \
>>
On 2008-02-27, Michael Goerz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to raise an exception any time a subprocess tries to read
> from STDIN:
>
> latexprocess = subprocess.Popen( \
> 'pdflatex' + " " \
> + 'test' + " 2>&1", \
> shell=True, \
> cwd=os.g
Hi,
I would like to raise an exception any time a subprocess tries to read
from STDIN:
latexprocess = subprocess.Popen( \
'pdflatex' + " " \
+ 'test' + " 2>&1", \
shell=True, \
cwd=os.getcwd(), \
env=os.environ, \
stdin=StdinCatcher() # any
15 matches
Mail list logo