$ gpspipe -w # log to stdout
$ gpspipe -w -o abc.log # log to a file
To auto-log on startup, insert the following line to the file /etc/rc.local
:
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |