#!/bin/bash test=`find /tmp -name vpnactive -cmin +30 | wc -l` if [ $test == "1" ]; then kill `ps ax | grep ssh | grep | grep -v SCREEN | grep -v grep | cut -d " " -f 1` fi