From 5da14042f70711ea5cf66e034699730335462f66 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 14:08:03 +0200 Subject: Merging upstream version 1.45.3+dfsg. Signed-off-by: Daniel Baumann --- src/fluent-bit/lib/monkey/examples/hello.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/fluent-bit/lib/monkey/examples/hello.py (limited to 'src/fluent-bit/lib/monkey/examples/hello.py') 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("

Hello Monkey

") +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() -- cgit v1.2.3