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
  • 5,264
  • 3
  • 34
  • 51

2 Answers2

6

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

BUKTOP
  • 867
  • 10
  • 22
  • 2
    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
  • 1
    @galkin for this particular question, this is the working solution – BUKTOP 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
  • 460
  • 3
  • 13