RE: standalone wiki

"Michael Geary" <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
> The redirection syntax (at least this much of it) is the same 
> in Windows 2000 as *nix. The only difference is that the null 
> device is 'nul' instead of '/dev/null'. So:
> 
> pythonw moin.py >nul 2>&1
> 
> (untested, but looks right)

Hmm... This may not do you any good at all. The command line redirection is
implemented by CMD.EXE. If you run CMD.EXE, it's going to open a console
window. But the whole point of the exercise was to avoid a console window!

What about redirecting stderr and stdout in Python code? Something like this
(untested but maybe close):

class devnull:
    def write( self, str ):
        pass

import sys
sys.stdout = devnull()
sys.stderr = devnull()

import moin
# do you need to call something here?

-Mike



-------------------------------------------------------
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.