I would add something like:
if [ -z $1 ]
echo "You must pass the process name as a parameter"
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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.