02-05-2021, 09:43 PM
So (not for the first time) I was wrong about everything. Turns out, after building the new sxmo scripts, my pickup hook was spitting out a bad process id for my ring hook, and that's why it wasn't working properly. No idea how that changed since it worked perfectly fine before, but I tweaked and simplified it, and now it's all peachy.
For reference, if this helps anyone else:
Previous pickup hook snippet:
New pickup hook snippet:
For reference, if this helps anyone else:
Previous pickup hook snippet:
Code:
ID=$(ps -ef|grep ring|grep -v grep|perl -ne '$_=~ m/^ *(.*) mo.*/;print $1')
kill -9 $ID
New pickup hook snippet:
Code:
ID=$(ps -ef|grep ring|grep -v grep|awk '{print $1}')
kill -9 $ID