#!/bin/sh # pid=`ps -aef | grep -i 'smarthome.py' | grep -v 'grep' | awk '{print $2}'` kill $pid