From 4c7c9dcdfd05a2d9648756c0da5c68588929ba5d Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 29 Dec 2014 00:34:16 +0800 Subject: restructured the project --- monitor_daemon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'monitor_daemon.sh') diff --git a/monitor_daemon.sh b/monitor_daemon.sh index fed2967..7d976ee 100755 --- a/monitor_daemon.sh +++ b/monitor_daemon.sh @@ -4,18 +4,18 @@ # echo "you must specify the triggered command" # exit 1 #fi +CLIENT="python lab_monitor_client.py" function on_exit { - python client.py --drop "$JID" + $CLIENT --drop "$JID" exit 0 } -JID=$(python client.py --create "$JMNAME" --type "$JTYPE") +JID=$($CLIENT --create "$JMNAME" --type "$JTYPE") if [[ "$JID" == "" ]]; then echo "failed to create monitor" exit 1 fi trap on_exit SIGINT SIGTERM -CLIENT="python client.py" while [ 1 ]; do trigger sleep 1 -- cgit v1.2.3