DEV Community

Discussion on: Killing many procs at one time

Collapse
mrm8488 profile image
Manuel Romero

I would add something like:

if [ -z $1 ]
then
 echo "You must pass the process name as a parameter"
 exit 1
fi
Collapse
dskuratovich profile image
Dmitry Author

Yeah, thanks for the another good advice!
You know checking whether the name exists is a good way not to have any issues with tools like kill.