I would add something like:
if [ -z $1 ] then echo "You must pass the process name as a parameter" exit 1 fi
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.
kill
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I would add something like:
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
.