Closed
Description
I ran this example code and I got this exception : called read on non-open pipe.
I also tried alternate approach of SpawnInstance(). Still I get the same error.
import osquery
if __name__ == "__main__":
instance = osquery.ExtensionClient('\\.pipe\osquery.em')
print(instance.open()) # This may raise an exception
client = instance.extension_client()
client.query('select timestamp from time')