regular expression problem

2007-04-30 Thread John Davis
Hi all, I have a large logged string "str". I would like to strip down "str" so that it contains only the lines that have "ERROR" in them. Could somebody give me and indication of how to do this? Thx John. = -- http://mail.python.org/mailman/listinfo/python-list

python problem: creating subprocess (it kills the parent process)

2007-03-29 Thread John Davis
Hi all, I am using Python 2.4. I am trying to run a C++ program on Red hat linux enterprise edition from Python by using various methods like > Os.system Os.popen Subprocess.popen Os.execvp Os.spawnl In all of these methods the program kills python program also. So, let's say i am in pytho

Re: Any "consumer review generators" available?

2007-03-29 Thread John Davis
Hi all, I am using Python 2.4. I am trying to run a C++ program on Red hat linux enterprise edition from Python by using various methods like > Os.system Os.popen Subprocess.popen Os.execvp Os.spawnl In all of these methods the program kills python program also. So, let's say i am in pytho