#!/bin/bash if [ "$1" = "" ]; then NameCALL="on_ppp"; else NameCALL=$1; fi pid_CALL=`ps -eo "%c %p" | grep "$NameCALL" | sed -n "/[^ ]*[ ]*\([^ ]*\).*/s//\1/p"` echo "pid = $pid_CALL"; if [ $pid_CALL ]; then kill $pid_CALL; fi