> "Jeff Johnson" <[EMAIL PROTECTED]> wrote:
> With all the information you're gathering on terminals,
> shells and streams, you
> may be the person best equipped to write the official Webware
> init.d scripts.
> :-)
If I'm the best person for the job, be afraid, be very afraid :)
> Have you looked at the "nohup" command? I first came across
That was a great lead and it sounds like it should work but I tried it
and it still hangs. I may have used it wrong, I'll keep playing with
it.
I do have good news, there is nothing special about the string being
printed, its just any string over 1023 bytes. That's a nice power of
two so it must be a buffer size problem somewhere. Here's the script
that demonstrates it. I'd like to take webware out of the equation and
just have a python script print a 1024 byte string with no terminal.
I'll try that now.
from WebKit.Page import Page
class TestTerminal2(Page):
def writeContent(self):
for x in range(1020,1030):
s = "X" * x
f = open("x.txt","a")
f.write("about to write %d bytes.\n" % x)
f.close()
self.writeln("""len = %d<br>""" % (len(s)))
print s
and here's x.txt:
==========================
about to write 1020 bytes.
about to write 1021 bytes.
about to write 1022 bytes.
about to write 1023 bytes.
about to write 1024 bytes.
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel