#!/bin/sh cd `dirname $0` . ./commun-httpd exec 2> /dev/null set -- `ps ax | grep "[h]ttpd.sh"` kill -9 $1 #kill -9 `ps ax | grep "[h]ttpd.sh" | awk '{print $1}'` set -- `ps ax | grep "[n]c -v -l -p $PORT -e ./w.sh"` kill -9 $1 #kill -9 `ps ax | grep "[n]c -v -l -p 8080 -e ./w.sh" | awk '{print $1}'` set -- `ps ax | grep "[w].sh"` kill -9 $1 #kill -9 `ps ax | grep "[w].sh" | awk '{print $1}'`