Skip to content

Commit

Permalink
Adding an alternative testing code in README.rst (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubabzs authored and PoppySeedPlehzr committed Mar 10, 2017
1 parent 8536ff5 commit d872596
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ example:

.. code-block:: python
#!/usr/bin/env python
import osquery
@osquery.register_plugin
Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit d872596

Please sign in to comment.