PMSIGNAL(1)
π PMSIGNAL(1) β the manual, bestie edition π
okay so this is a page from the General Commands Manual section of the PCP (Performance Co-Pilot) docs, and we're talking about pmsignal today. Sit down, grab a strawberry π, it's lowkey the most useful little thing.
β¨ NAME β¨
pmsignal β send a signal to one or more processes π
πΈ SYNOPSIS πΈ
$PCP_BINADM_DIR/pmsignal [-alnp] [-s signal] [PID ...|name ...]
π¦ DESCRIPTION π¦
So pmsignal is a cross-platform event signalling mechanism made to be used with the tools from the Performance Co-Pilot toolkit, periodt. What it does is send a named signal to one or more processes β but heads up, only HUP, USR1, TERM, and KILL are accepted. That's the whole guest list, no plus-ones π.
You say which processes by giving PIDs directly, or by giving program names (that's where -a or -p come in, bestie).
- In the all case, the set of all running processes gets searched for a
basename(1)match on name. Like, every process, we're going through them π. - In the program case, the process identifiers get extracted from files in the
$PCP_RUN_DIRdirectory, where the file names are matched on name.pid.
The -n option is the icon of "what if" β it reports the list of process identifiers that would have been signalled, but no signals are actually sent. Dry run energy, we love her. π§
If you don't specify a signal at all, then the TERM signal gets sent. And the list of supported signals is reported when you use the -l option. Easy.
β οΈ On Linux and UNIX platforms,pmsignalis literally just a simple wrapper around thekill(1)command. On Windows, though? There's no direct equivalent to this mechanism, so an alternate mechanism has been implemented β and here's the catch, it's only honoured by PCP tools, not by all Windows utilities. So yeah, iykyk. π
π OPTIONS π
The available command line options are:
-a,--allβ send the signal to all named processes π«-l,--listβ list the supported signals π-n,--dry-runβ list the processes that would be affected (no actual signalling, just vibes) π-p,--programβ extract programs from PCP runtime PID files ποΈ-s signal,--signal=signalβ specify the signal to send, one of:HUP,USR1,TERM,KILLπ¨-?,--helpβ display the usage message and exit π«Ά
π PCP ENVIRONMENT π
Environment variables with the prefix PCP_ are used to parameterize the file and directory names that PCP uses. On each installation, the file /etc/pcp.conf contains the local values for these variables. And the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). Customisation, slay. β
π SEE ALSO π
basename(1), kill(1), killall(1), pcp.conf(5) and pcp.env(5).
and that's the whole page, bestie, no cap π
This one comes to you from Performance Co-Pilot β that's the PCP source, in the PMSIGNAL(1) manual β so go forth, signal responsibly, and remember: TERM is the default, so if you didn't ask for chaos, don't act surprised when you get it π π β¨
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2016 Red Hat
- Copyright (c) 2009 Aconex. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms