#!/bin/sh rm -f /tmp/sens.lck for process in na_sens na_sensor do pid=`pidof $process` if [ "$pid" != "" ] then kill -9 $pid fi done