[Zope] Couple of 2.0b1 observations on win98
Andreas Kostyrka
andreas@mtg.co.at
Sun, 1 Aug 1999 21:55:23 +0200 (CEST)
On Sun, 1 Aug 1999, Rob Page wrote:
> Depends what the meaning of the words "in Python" is... :^)
>
> You could write an External Method in Python:
>
> import os
> some_script_output = os.popen("some_script.pl",'r').readlines()
>
> some_script_output is then a list of lines of output. In this example
> some_script.pl is in perl.
>
> If you weren't interested in the output (i.e., you just wanted to run
> something), you could (I think) use:
>
> import os
> os.system("some_script.pl")
Well, that's dangerous.
I'd much more prefer:
os.system("some_script.pl >/dev/null 2>/dev/null")
At least in the Bobo version, pcgi was VERY sensitive about things getting
written to stdout/stderr.
Andreas
--
Andreas Kostyrka | andreas@mtg.co.at
phone: +43/1/7070750 | phone: +43/676/4091256
MTG Handelsges.m.b.H. | fax: +43/1/7065299
Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA