diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-06 14:53:33 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-06 14:53:33 +0200 |
commit | ed78c2141087dffc1875d96341254df3454752f6 (patch) | |
tree | c44179e9252dcec06c5a05bec6e2768eb068ee69 | |
parent | 1756a3d84738055ad8f248eaa5b19461a364d3a8 (diff) |
Added a simple script which writes to gitnotipy's unix socket.
-rwxr-xr-x | gitnotipy-update.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gitnotipy-update.py b/gitnotipy-update.py new file mode 100755 index 0000000..25f2d04 --- /dev/null +++ b/gitnotipy-update.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python2 + +# Change this as needed. +filename = '/home/snakebite/projects/gitnotipy/foo.socket' + +import socket, sys + +s = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) +s.connect(filename) +s.send(sys.argv[1]) +s.close() |