I am trying to delete stuck processes in RMQ using command rabbitmqctl eval 'erlang:exit(c:pid("'$pid'"),kill).'
But I am having below error.
Error:
{:undef, [{:c, :pid, ['0,159,0'], []}, {:erl_eval, :do_apply, 6, [file: 'erl_eval.erl', line: 680]}, {:erl_eval, :expr_list, 6, [file: 'erl_eval.erl', line: 888]}, {:erl_eval, :expr, 5, [file: 'erl_eval.erl', line: 411]}, {:erl_eval, :exprs, 2, []}]}
Any idea to resolve this error? What I am doing wrong here?
"'$pid'"
. Looking at the error message it looks like a string, and in this caseerlang:exit(c:pid(list_to_pid("'$pid'")),kill)
should work – Pascal Feb 18 at 20:03