From d872596582ccd29efa3fa9eabff120ce5b54fd0c Mon Sep 17 00:00:00 2001 From: Rubab-Syed Date: Sat, 11 Mar 2017 00:50:58 +0500 Subject: [PATCH] Adding an alternative testing code in README.rst (#33) --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rst b/README.rst index 5c8fcd8..1764db0 100644 --- a/README.rst +++ b/README.rst @@ -27,6 +27,8 @@ example: .. code-block:: python + #!/usr/bin/env python + import osquery @osquery.register_plugin @@ -73,6 +75,12 @@ Then start the Python extension: python ./my_table_plugin.py --socket /Users/USERNAME/.osquery/shell.em +Alternatively, you can also autoload your extension when starting an osquery shell: + +.. code-block:: none + + osqueryi --extension path_to_my_table_plugin.py + This will register a table called "foobar". As you can see, the table will return two rows: