13

I want to send SIGUSR1 signal to my node.js application for debugging via terminal. I know command kill -SIGUSR1 <pid>

How can I setup keyboard shortcut for this? If it matters, I use MacOs

galkin
  • 4,746
  • 3
  • 32
  • 48

2 Answers2

5

Quite old, but for anyone who is looking for answer: SIGUSR (BSD SIGINFO) - ^T (Control and T simultaneously)

BbIKTOP
  • 789
  • 8
  • 21
  • 1
    It will send SIGINFO, but question was about SIGUSR1. The difference here https://www.gnu.org/software/libc/manual/html_node/Miscellaneous-Signals.html#Miscellaneous-Signals – galkin Dec 27 '19 at 21:00
  • @galkin for this particular question, this is the working solution – BbIKTOP Mar 21 '22 at 09:19
0

To get the pid of your node.js application:

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

To create a global shortcut for your command:

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

Ohad Rubin
  • 412
  • 3
  • 12