summaryrefslogtreecommitdiff
path: root/gitnotipy-update.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-05-06 14:53:33 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-05-06 14:53:33 +0200
commited78c2141087dffc1875d96341254df3454752f6 (patch)
treec44179e9252dcec06c5a05bec6e2768eb068ee69 /gitnotipy-update.py
parent1756a3d84738055ad8f248eaa5b19461a364d3a8 (diff)
Added a simple script which writes to gitnotipy's unix socket.
Diffstat (limited to 'gitnotipy-update.py')
-rwxr-xr-xgitnotipy-update.py11
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()