Re: standalone wiki

Dan Gregory <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
I know nothing about pythonw but couldn't you do this (if you're on *nix)

pythonw moin.py > /dev/null 2>&1

If you really want that output just dump it to a file instead of /dev/null.



Michael Iles wrote:

>I recently set up a standalone wiki using moin.py on a Win2K box, and ran
>into the following problem. When I had things working the way I wanted them
>I replaced the call to 'python moin.py' with 'pythonw moin.py' so I wouldn't
>have the shell window hanging around. However, the wiki would then crash
>within a few hours on the call to sys.stdout.write with an exception saying
>that it was an invalid file descriptor. So the sys module must have been
>buffering the output (which consisted mostly of the little spinning bar
>characters '\|/-') and when it got around to writing to stdout, which
>doesn't exist for pythonw, it crashed.
>
>I have two comments on this:
>
>1. This should be noted somewhere in the docs. In retrospect this is
>obvious, but at the time I thought that pythonw was a drop-in equivalent to
>python. (I'm still a bit surprised that pythonw doesn't just discard
>anything written to stdout.)
>
>2. What's the recommended approach to running a standalone wiki on Windows?
>My first instinct is to change moin.py to detect whether stdout is valid and
>if not, to point stdout/stderr at a log file and also to remove the spinning
>bar in httpdmain.py. Better ideas?
>
>Mike.
>
>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]] On Behalf Of Thomas Waldmann
>Sent: March 20, 2004 5:07 AM
>To: [email protected]
>Subject: Re: [Moin-devel] standalone wiki
>
>
>  
>
>>I have described how to set up the standalone wiki. Should I put this into
>>    
>>
>the 
>  
>
>>masterwiki ?
>>
>>    
>>
>Yes, integrate it into the install docs there.
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IBM Linux Tutorials
>Free Linux tutorial presented by Daniel Robbins, President and CEO of
>GenToo technologies. Learn everything from fundamentals to system
>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>_______________________________________________
>Moin-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/moin-devel
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IBM Linux Tutorials
>Free Linux tutorial presented by Daniel Robbins, President and CEO of
>GenToo technologies. Learn everything from fundamentals to system
>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>_______________________________________________
>Moin-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/moin-devel
>
>  
>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.