you should take a look at this code:
http://hww3.riverweb.com:8080/viewrep/~raw,r=1.22/cvs/Fins/lib/Fins.pmod/Fin...
It's pretty similar, I think I had a similar problem.
Bill
On Thu, 27 Apr 2006, Adam Montague wrote:
I am trying to get an interactive mode working for my app, to make debugging it easier. I created a "Hilfe" class that inherits Tools.Hilfe.StdinHilfe, and if the app is called with -i, I call add_constant() on this, call Hilfe(), and then return.
But when I start my app with -i, I get the welcome to hilfe message, and then it starts spewing 0 at me forever, I am back at my shell, and I have to kill the pike process to get the 0s to stop.
Adam