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
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+
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
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
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
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
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 =