Re: [Zope] windows python differences

2006-05-19 Thread Tino Wildenhain
garry saddington wrote: This code on linux works without a problem ispell = os.popen(echo + word + | /opt/scholarpack/ancillary/ispell/bin/ispell -a) ispell.readline sentence = ispell.readline() What if the word is like `rm -rf /` for example? Doing something like that above is

Re: [Zope] windows python differences

2006-05-19 Thread garry saddington
On Fri, 2006-05-19 at 06:06 +0200, Andreas Jung wrote: --On 18. Mai 2006 23:21:50 +0100 garry saddington [EMAIL PROTECTED] wrote: hrows a string index out of range at the sentence[0] constructs. the popen command on windows is: ispell=os.popen(echo +word+

Re: [Zope] windows python differences

2006-05-19 Thread garry saddington
On Fri, 2006-05-19 at 09:01 +0200, Tino Wildenhain wrote: garry saddington wrote: This code on linux works without a problem ispell = os.popen(echo + word + | /opt/scholarpack/ancillary/ispell/bin/ispell -a) ispell.readline sentence = ispell.readline() What if the word is like

Re: [Zope] windows python differences

2006-05-19 Thread Gabriel Genellina
At Thursday 18/5/2006 19:21, garry saddington wrote: This code on linux works without a problem ispell = os.popen(echo + word + | /opt/scholarpack/ancillary/ispell/bin/ispell -a) ispell.readline sentence = ispell.readline() if (sentence[0] == ''): however on windows it throws a string

Re: [Zope] windows python differences

2006-05-19 Thread Tino Wildenhain
garry saddington wrote: On Fri, 2006-05-19 at 09:01 +0200, Tino Wildenhain wrote: garry saddington wrote: This code on linux works without a problem ispell = os.popen(echo + word + | /opt/scholarpack/ancillary/ispell/bin/ispell -a) ispell.readline sentence = ispell.readline() What if

Re: [Zope] windows python differences

2006-05-19 Thread Chris Withers
garry saddington wrote: What if the word is like `rm -rf /` It is impossible for this to happen because of other controls in place. Gary, Just to echo what others have said: this is all insane. There are much better ways of communicating with other processes and spawning them off. In Zope

[Zope] windows python differences

2006-05-18 Thread garry saddington
This code on linux works without a problem ispell = os.popen(echo + word + | /opt/scholarpack/ancillary/ispell/bin/ispell -a) ispell.readline sentence = ispell.readline() if (sentence[0] == ''): parts = string.split(sentence, : ) gluedwords = parts[1] words =