Re: cgi subprocess, cannot get output

2006-04-26 Thread Jakub Piotr Nowak
Dnia 26.04.2006 James Stroud <[EMAIL PROTECTED]> napisa³/a: } Jakub Piotr Nowak wrote: }> Hello, }> }> In the following cgi program, I cannot get subprocess output. }> I print the header, flush stdout to prepare it to new content, }> but variable 'o' is always empty. }> }> Could somebody help me

Re: cgi subprocess, cannot get output

2006-04-25 Thread James Stroud
Jakub Piotr Nowak wrote: > Hello, > > In the following cgi program, I cannot get subprocess output. > I print the header, flush stdout to prepare it to new content, > but variable 'o' is always empty. > > Could somebody help me with that? > > def main(): > print "Content-type: text/html\n\n"

cgi subprocess, cannot get output

2006-04-25 Thread Jakub Piotr Nowak
Hello, In the following cgi program, I cannot get subprocess output. I print the header, flush stdout to prepare it to new content, but variable 'o' is always empty. Could somebody help me with that? def main(): print "Content-type: text/html\n\n" sys.stdout.flush() if form.has_key('sent