C H A P T E R 6 |
Killing or Sending Signals to Programs With mpkill |
The mpkill command returns these values:
To kill a running program, use the mpkill command and the program's job ID:
% mpkill jid |
The mpkill command stops all the processes associated with the Job ID.
The job ID now begins with the name of the resource manager (cre, lsf, pbs, or sge). For example: lsf.1289. To obtain a program's job ID, use the mpps command, described in How to Display Information About Individual Jobs (-J).
If you have killed a job but it continues to appear in the output of the mpps command (described in Chapter 7), log in as root to the master node and invoke the mpkill command with the -C option and the jid.
% mpkill -C jid |
The -C option purges the job from the CRE database, including unpublishing names associated with the job.
To simply list the supported signals, use the -l option.
% mpkill -l |
To display a list with brief descriptions, use the -d option.
% mpkill -d |
To send a signal to a job, use this syntax:
% mpkill -signal jid |
% mpkill -CONT sge.59 |
The example above sends a SIGCONT signal to the processes of the program whose job ID is sge.59.
Issuing mpkill without specifying a signal sends a SIGTERM to the job.Command Reference (mpkill)
Remove all traces of a job, including unpublished names, from the CRE database |
|
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.