Okay, I have an assignment and I am very very new to Unix. Here is what I am trying to do: I wrote a script to kill a running process. I have to use the command killproc. I just don't know where to put it or how. Every time I try to use killproc when I run the script I get an error: command not foundkillproc '[A-Z][a-zA-Z]*'process=$(ps | grep $@)while [[ $process ]] ; dopid=$(echo $process | cut -d' ' -f 1)name=$(echo $process | cut -d' ' -f 4)echo -e PID: $pid \t Name: $nameecho -n Would you like to kill $name [yes/no]read word < /dev/ttykill $pidfiprocess=$(ps | grep $process)done
writing a script using killproc
bash;kill