SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to execute the output of a command, you can put it inside $(...), however for your specific task take a look at the killall and pkill commands.
$(...)
killall
pkill