diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-07-10 18:03:19 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-07-10 18:03:19 -0400 |
commit | d19ca7fe4fc642282dbd5694ad34530ee4b30c2b (patch) | |
tree | 7c7b0aac0056aacef1cb38d72c310c8009d90cec /test.py | |
parent | cccf7cc7443c00c84fb59a4e840ebca45a0c1e01 (diff) | |
download | exmachina-d19ca7fe4fc642282dbd5694ad34530ee4b30c2b.tar.gz exmachina-d19ca7fe4fc642282dbd5694ad34530ee4b30c2b.zip |
initial scafolding
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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() |