From d19ca7fe4fc642282dbd5694ad34530ee4b30c2b Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 10 Jul 2012 18:03:19 -0400 Subject: initial scafolding --- test.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test.py (limited to 'test.py') diff --git a/test.py b/test.py new file mode 100755 index 0000000..f6c4de1 --- /dev/null +++ b/test.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +import sys +import optparse +import logging +import socket + +import bjsonrpc +import bjsonrpc.connection +import augeas + +# ============================================================================= +# Command line handling +def main(): + + socket_path="/tmp/exmachina.sock" + sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) + sock.connect(socket_path) + + c = bjsonrpc.connection.Connection(sock) + print c.call.whattime() + print c.call.listfiles() + +if __name__ == '__main__': + main() -- cgit v1.2.3