[Tutor] CGIHTTPServer - redirect output to a log file
Alan Gauld
alan.gauld at btinternet.com
Mon Oct 16 00:18:18 CEST 2006
>> You can start it from a shell script
>> #!/bin/sh
>> ./MyWebServer.py 2>>/path/to/output.log
>>
"Paulino" <paulino1 at sapo.pt> wrote in message
news:453288E6.7000509 at sapo.pt...
> well, I'm running this CGIserver on windows...
You can still use redirection although its not as powerful as unix.
Just try
C:\PATH> python \path\mywebserver.py > logfile.txt
You can get full details by entering the search string "output
redirection"
at the XP Help screen and viewing the "Using command redirection
operators"
topic.
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list