From 5fee56440c10f81286699a4dd9e32506aa342d54 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 10 Jan 2012 16:30:59 +0100 Subject: Add a simple_notify plugin And also fix some issues, like the split of the exec_command arguments. And the doc for the plugin, too. --- src/daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/daemon.py') diff --git a/src/daemon.py b/src/daemon.py index b413f465..4b4c0b79 100755 --- a/src/daemon.py +++ b/src/daemon.py @@ -22,7 +22,7 @@ command on your local machine. import sys import threading import subprocess - +import shlex import logging log = logging.getLogger(__name__) @@ -40,7 +40,8 @@ class Executor(threading.Thread): def run(self): log.info('executing %s' % (self.command.strip(),)) - subprocess.call(self.command.split()) + command = shlex.split(self.command) + subprocess.call(command) def main(): while True: -- cgit v1.2.3