Article 5QNA2 "syntax error near unexpected token"

"syntax error near unexpected token"

by
M4xx1m1l14nn
from LinuxQuestions.org on (#5QNA2)
Trying to write a function such that all instances of a particular process are automatically killed. This triggers the aforementioned error:

Code:clean_up_beam(){
list_of_pids=`pidof (beam.smp)`

for pid in $list_of_pids; do
sudo kill -9 $pid
done
}How do I make this work?latest?d=yIl2AUoC8zA latest?i=VRmaRz0zTwo:QnlqQzjCSMc:F7zBnMy latest?i=VRmaRz0zTwo:QnlqQzjCSMc:V_sGLiP latest?d=qj6IDK7rITs latest?i=VRmaRz0zTwo:QnlqQzjCSMc:gIN9vFwVRmaRz0zTwo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments