diff options
Diffstat (limited to 'src/fluent-bit/lib/monkey/examples/hello.py')
-rw-r--r-- | src/fluent-bit/lib/monkey/examples/hello.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/monkey/examples/hello.py b/src/fluent-bit/lib/monkey/examples/hello.py new file mode 100644 index 000000000..bf4b5becd --- /dev/null +++ b/src/fluent-bit/lib/monkey/examples/hello.py @@ -0,0 +1,12 @@ +import monkey + +f = open('/tmp/index.html', 'w') +f.write("<html><body><h2>Hello Monkey</h2></body></html>") +f.close() + +monkey.init(None, 0, 0, '/tmp/') +monkey.configure(indexfile='index.html') + +monkey.start() +raw_input("Press enter to stop the server...") +monkey.stop() |