8.16. mysql_zap — Kill Processes That Match a Pattern

MySQL 5.0

8.16. mysql_zap — Kill Processes That Match a Pattern

mysql_zap kills processes that match a pattern. It uses the ps command and Unix signals, so it runs on Unix and Unix-like systems.

Invoke mysql_zap like this:

shell> ] [-?Ift] 

A process matches if its output line from the ps command contains the pattern. By default, mysql_zap asks for confirmation for each process. Respond to kill the process, or to exit mysql_zap. For any other response, mysql_zap does not attempt to kill the process.

If the option is given, it specifies the name or number of the signal to send to each process. Otherwise, mysql_zap tries first with (signal 15) and then with (signal 9).

mysql_zap understands the following additional options:

  • , ,

    Display a help message and exit.

  • Force mode. mysql_zap attempts to kill each process without confirmation.

  • Test mode. Display information about each process but do not kill it.