From ed78c2141087dffc1875d96341254df3454752f6 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 6 May 2011 14:53:33 +0200 Subject: Added a simple script which writes to gitnotipy's unix socket. --- gitnotipy-update.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 gitnotipy-update.py 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() -- cgit v1.2.3