#!/bin/bash

read -p "name: " name
id=`ps -ef | grep $name | grep -oE "[0-9]+" | head -n 1`
kill -2 $id
