#!/bin/bash if [ -e /var/run/ppp0.pid ]; then kill `cat /var/run/ppp0.pid` rm -f /var/run/ppp0.pid echo "killed ppp0 process" else echo "no /var/run/ppp0.pid file found" fi if [ -e /root/.kde/share/apps/kppp/kppp.pid ]; then kill `cat /root/.kde/share/apps/kppp/kppp.pid` rm -f /root/.kde/share/apps/kppp/kppp.pid echo "killed kppp process" else echo "no /root/.kde/share/apps/kppp/kppp.pid file found" fi ps aux | grep kppp | while read user pid line do echo $pid done | xargs kill -9