How to send SIGUSR1 signal using keyboard shortcut?

I want to send a SIGUSR1 signal to my node.js app for debugging via terminal. I know the teamkill -SIGUSR1 <pid>

How do I set up a keyboard shortcut for this? If it matters I am using MacOs

+3


source to share


1 answer


To get the pid of your node.js app:

How to get the PID of a process by specifying the process name in Mac OS X?



To create a global shortcut for your team:

https://apple.stackexchange.com/questions/24063/create-global-shortcut-to-run-command-line-applications

+1


source







All Articles